diff --git a/PKHeX.WinForms/App.config b/PKHeX.WinForms/App.config
new file mode 100644
index 000000000..49cc43e1d
--- /dev/null
+++ b/PKHeX.WinForms/App.config
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/PKHeX/MainWindow/Main.Designer.cs b/PKHeX.WinForms/MainWindow/Main.Designer.cs
similarity index 99%
rename from PKHeX/MainWindow/Main.Designer.cs
rename to PKHeX.WinForms/MainWindow/Main.Designer.cs
index fa5fb0c9e..a2f6203f1 100644
--- a/PKHeX/MainWindow/Main.Designer.cs
+++ b/PKHeX.WinForms/MainWindow/Main.Designer.cs
@@ -1,4 +1,4 @@
-namespace PKHeX
+namespace PKHeX.WinForms
{
partial class Main
{
@@ -3419,8 +3419,8 @@ public void InitializeComponent()
//
// PB_MarkAlola
//
- this.PB_MarkAlola.Image = global::PKHeX.Properties.Resources.sanchi;
- this.PB_MarkAlola.InitialImage = global::PKHeX.Properties.Resources.sanchi;
+ this.PB_MarkAlola.Image = Core.Properties.Resources.sanchi;
+ this.PB_MarkAlola.InitialImage = Core.Properties.Resources.sanchi;
this.PB_MarkAlola.Location = new System.Drawing.Point(96, 15);
this.PB_MarkAlola.Name = "PB_MarkAlola";
this.PB_MarkAlola.Size = new System.Drawing.Size(20, 20);
@@ -3696,7 +3696,7 @@ public void InitializeComponent()
//
// Menu_Open
//
- this.Menu_Open.Image = global::PKHeX.Properties.Resources.open;
+ this.Menu_Open.Image = Core.Properties.Resources.open;
this.Menu_Open.Name = "Menu_Open";
this.Menu_Open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.Menu_Open.ShowShortcutKeys = false;
@@ -3706,7 +3706,7 @@ public void InitializeComponent()
//
// Menu_Save
//
- this.Menu_Save.Image = global::PKHeX.Properties.Resources.savePKM;
+ this.Menu_Save.Image = Core.Properties.Resources.savePKM;
this.Menu_Save.Name = "Menu_Save";
this.Menu_Save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.Menu_Save.ShowShortcutKeys = false;
@@ -3720,14 +3720,14 @@ public void InitializeComponent()
this.Menu_ExportMAIN,
this.Menu_ExportBAK});
this.Menu_ExportSAV.Enabled = false;
- this.Menu_ExportSAV.Image = global::PKHeX.Properties.Resources.saveSAV;
+ this.Menu_ExportSAV.Image = Core.Properties.Resources.saveSAV;
this.Menu_ExportSAV.Name = "Menu_ExportSAV";
this.Menu_ExportSAV.Size = new System.Drawing.Size(139, 22);
this.Menu_ExportSAV.Text = "&Export SAV...";
//
// Menu_ExportMAIN
//
- this.Menu_ExportMAIN.Image = global::PKHeX.Properties.Resources.main;
+ this.Menu_ExportMAIN.Image = Core.Properties.Resources.main;
this.Menu_ExportMAIN.Name = "Menu_ExportMAIN";
this.Menu_ExportMAIN.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)));
this.Menu_ExportMAIN.ShowShortcutKeys = false;
@@ -3737,7 +3737,7 @@ public void InitializeComponent()
//
// Menu_ExportBAK
//
- this.Menu_ExportBAK.Image = global::PKHeX.Properties.Resources.bak;
+ this.Menu_ExportBAK.Image = Core.Properties.Resources.bak;
this.Menu_ExportBAK.Name = "Menu_ExportBAK";
this.Menu_ExportBAK.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B)));
this.Menu_ExportBAK.ShowShortcutKeys = false;
@@ -3747,7 +3747,7 @@ public void InitializeComponent()
//
// Menu_Exit
//
- this.Menu_Exit.Image = global::PKHeX.Properties.Resources.exit;
+ this.Menu_Exit.Image = Core.Properties.Resources.exit;
this.Menu_Exit.Name = "Menu_Exit";
this.Menu_Exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
this.Menu_Exit.ShowShortcutKeys = false;
@@ -3773,14 +3773,14 @@ public void InitializeComponent()
this.Menu_ShowdownExportPKM,
this.Menu_ShowdownExportParty,
this.Menu_ShowdownExportBattleBox});
- this.Menu_Showdown.Image = global::PKHeX.Properties.Resources.showdown;
+ this.Menu_Showdown.Image = Core.Properties.Resources.showdown;
this.Menu_Showdown.Name = "Menu_Showdown";
this.Menu_Showdown.Size = new System.Drawing.Size(143, 22);
this.Menu_Showdown.Text = "Showdown";
//
// Menu_ShowdownImportPKM
//
- this.Menu_ShowdownImportPKM.Image = global::PKHeX.Properties.Resources.import;
+ this.Menu_ShowdownImportPKM.Image = Core.Properties.Resources.import;
this.Menu_ShowdownImportPKM.Name = "Menu_ShowdownImportPKM";
this.Menu_ShowdownImportPKM.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T)));
this.Menu_ShowdownImportPKM.ShowShortcutKeys = false;
@@ -3790,7 +3790,7 @@ public void InitializeComponent()
//
// Menu_ShowdownExportPKM
//
- this.Menu_ShowdownExportPKM.Image = global::PKHeX.Properties.Resources.export;
+ this.Menu_ShowdownExportPKM.Image = Core.Properties.Resources.export;
this.Menu_ShowdownExportPKM.Name = "Menu_ShowdownExportPKM";
this.Menu_ShowdownExportPKM.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.T)));
@@ -3801,7 +3801,7 @@ public void InitializeComponent()
//
// Menu_ShowdownExportParty
//
- this.Menu_ShowdownExportParty.Image = global::PKHeX.Properties.Resources.export;
+ this.Menu_ShowdownExportParty.Image = Core.Properties.Resources.export;
this.Menu_ShowdownExportParty.Name = "Menu_ShowdownExportParty";
this.Menu_ShowdownExportParty.Size = new System.Drawing.Size(231, 22);
this.Menu_ShowdownExportParty.Text = "Export Party to Clipboard";
@@ -3809,7 +3809,7 @@ public void InitializeComponent()
//
// Menu_ShowdownExportBattleBox
//
- this.Menu_ShowdownExportBattleBox.Image = global::PKHeX.Properties.Resources.export;
+ this.Menu_ShowdownExportBattleBox.Image = Core.Properties.Resources.export;
this.Menu_ShowdownExportBattleBox.Name = "Menu_ShowdownExportBattleBox";
this.Menu_ShowdownExportBattleBox.Size = new System.Drawing.Size(231, 22);
this.Menu_ShowdownExportBattleBox.Text = "Export Battle Box to Clipboard";
@@ -3820,14 +3820,14 @@ public void InitializeComponent()
this.Menu_CyberGadget.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Menu_OpenTemp,
this.Menu_OpenCache});
- this.Menu_CyberGadget.Image = global::PKHeX.Properties.Resources.other;
+ this.Menu_CyberGadget.Image = Core.Properties.Resources.other;
this.Menu_CyberGadget.Name = "Menu_CyberGadget";
this.Menu_CyberGadget.Size = new System.Drawing.Size(143, 22);
this.Menu_CyberGadget.Text = "CyberGadget";
//
// Menu_OpenTemp
//
- this.Menu_OpenTemp.Image = global::PKHeX.Properties.Resources.folder;
+ this.Menu_OpenTemp.Image = Core.Properties.Resources.folder;
this.Menu_OpenTemp.Name = "Menu_OpenTemp";
this.Menu_OpenTemp.Size = new System.Drawing.Size(175, 22);
this.Menu_OpenTemp.Text = "Open Temp Folder";
@@ -3835,7 +3835,7 @@ public void InitializeComponent()
//
// Menu_OpenCache
//
- this.Menu_OpenCache.Image = global::PKHeX.Properties.Resources.folder;
+ this.Menu_OpenCache.Image = Core.Properties.Resources.folder;
this.Menu_OpenCache.Name = "Menu_OpenCache";
this.Menu_OpenCache.Size = new System.Drawing.Size(175, 22);
this.Menu_OpenCache.Text = "Open Cache Folder";
@@ -3850,14 +3850,14 @@ public void InitializeComponent()
this.Menu_Database,
this.Menu_MGDatabase,
this.Menu_BatchEditor});
- this.Menu_Data.Image = global::PKHeX.Properties.Resources.data;
+ this.Menu_Data.Image = Core.Properties.Resources.data;
this.Menu_Data.Name = "Menu_Data";
this.Menu_Data.Size = new System.Drawing.Size(143, 22);
this.Menu_Data.Text = "Data";
//
// Menu_LoadBoxes
//
- this.Menu_LoadBoxes.Image = global::PKHeX.Properties.Resources.load;
+ this.Menu_LoadBoxes.Image = Core.Properties.Resources.load;
this.Menu_LoadBoxes.Name = "Menu_LoadBoxes";
this.Menu_LoadBoxes.Size = new System.Drawing.Size(182, 22);
this.Menu_LoadBoxes.Text = "Load Boxes";
@@ -3865,7 +3865,7 @@ public void InitializeComponent()
//
// Menu_DumpBoxes
//
- this.Menu_DumpBoxes.Image = global::PKHeX.Properties.Resources.dump;
+ this.Menu_DumpBoxes.Image = Core.Properties.Resources.dump;
this.Menu_DumpBoxes.Name = "Menu_DumpBoxes";
this.Menu_DumpBoxes.Size = new System.Drawing.Size(182, 22);
this.Menu_DumpBoxes.Text = "Dump Boxes";
@@ -3873,7 +3873,7 @@ public void InitializeComponent()
//
// Menu_Report
//
- this.Menu_Report.Image = global::PKHeX.Properties.Resources.report;
+ this.Menu_Report.Image = Core.Properties.Resources.report;
this.Menu_Report.Name = "Menu_Report";
this.Menu_Report.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)));
this.Menu_Report.ShowShortcutKeys = false;
@@ -3883,7 +3883,7 @@ public void InitializeComponent()
//
// Menu_Database
//
- this.Menu_Database.Image = global::PKHeX.Properties.Resources.database;
+ this.Menu_Database.Image = Core.Properties.Resources.database;
this.Menu_Database.Name = "Menu_Database";
this.Menu_Database.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
this.Menu_Database.ShowShortcutKeys = false;
@@ -3893,7 +3893,7 @@ public void InitializeComponent()
//
// Menu_MGDatabase
//
- this.Menu_MGDatabase.Image = global::PKHeX.Properties.Resources.gift;
+ this.Menu_MGDatabase.Image = Core.Properties.Resources.gift;
this.Menu_MGDatabase.Name = "Menu_MGDatabase";
this.Menu_MGDatabase.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.G)));
this.Menu_MGDatabase.ShowShortcutKeys = false;
@@ -3903,7 +3903,7 @@ public void InitializeComponent()
//
// Menu_BatchEditor
//
- this.Menu_BatchEditor.Image = global::PKHeX.Properties.Resources.settings;
+ this.Menu_BatchEditor.Image = Core.Properties.Resources.settings;
this.Menu_BatchEditor.Name = "Menu_BatchEditor";
this.Menu_BatchEditor.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.M)));
this.Menu_BatchEditor.ShowShortcutKeys = false;
@@ -3916,14 +3916,14 @@ public void InitializeComponent()
this.Menu_Other.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Menu_OpenSDF,
this.Menu_OpenSDB});
- this.Menu_Other.Image = global::PKHeX.Properties.Resources.other;
+ this.Menu_Other.Image = Core.Properties.Resources.other;
this.Menu_Other.Name = "Menu_Other";
this.Menu_Other.Size = new System.Drawing.Size(143, 22);
this.Menu_Other.Text = "Other";
//
// Menu_OpenSDF
//
- this.Menu_OpenSDF.Image = global::PKHeX.Properties.Resources.folder;
+ this.Menu_OpenSDF.Image = Core.Properties.Resources.folder;
this.Menu_OpenSDF.Name = "Menu_OpenSDF";
this.Menu_OpenSDF.Size = new System.Drawing.Size(229, 22);
this.Menu_OpenSDF.Text = "Open SaveDataFiler Folder";
@@ -3931,7 +3931,7 @@ public void InitializeComponent()
//
// Menu_OpenSDB
//
- this.Menu_OpenSDB.Image = global::PKHeX.Properties.Resources.folder;
+ this.Menu_OpenSDB.Image = Core.Properties.Resources.folder;
this.Menu_OpenSDB.Name = "Menu_OpenSDB";
this.Menu_OpenSDB.Size = new System.Drawing.Size(229, 22);
this.Menu_OpenSDB.Text = "Open SaveDataBackup Folder";
@@ -3952,7 +3952,7 @@ public void InitializeComponent()
//
this.Menu_Language.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.CB_MainLanguage});
- this.Menu_Language.Image = global::PKHeX.Properties.Resources.language;
+ this.Menu_Language.Image = Core.Properties.Resources.language;
this.Menu_Language.Name = "Menu_Language";
this.Menu_Language.Size = new System.Drawing.Size(139, 22);
this.Menu_Language.Text = "Language";
@@ -3971,7 +3971,7 @@ public void InitializeComponent()
this.Menu_ModifyPKM,
this.Menu_Undo,
this.Menu_Redo});
- this.Menu_Modify.Image = global::PKHeX.Properties.Resources.settings;
+ this.Menu_Modify.Image = Core.Properties.Resources.settings;
this.Menu_Modify.Name = "Menu_Modify";
this.Menu_Modify.Size = new System.Drawing.Size(139, 22);
this.Menu_Modify.Text = "Set to SAV";
@@ -4028,12 +4028,12 @@ public void InitializeComponent()
//
// Menu_About
//
- this.Menu_About.Image = global::PKHeX.Properties.Resources.about;
+ this.Menu_About.Image = Core.Properties.Resources.about;
this.Menu_About.Name = "Menu_About";
this.Menu_About.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
this.Menu_About.ShowShortcutKeys = false;
this.Menu_About.Size = new System.Drawing.Size(139, 22);
- this.Menu_About.Text = "About &PKHeX";
+ this.Menu_About.Text = "About &PKHeX.Core";
this.Menu_About.Click += new System.EventHandler(this.mainMenuAbout);
//
// tabBoxMulti
@@ -4067,7 +4067,7 @@ public void InitializeComponent()
//
// PAN_Box
//
- this.PAN_Box.BackgroundImage = global::PKHeX.Properties.Resources.box_wp16xy;
+ this.PAN_Box.BackgroundImage = Core.Properties.Resources.box_wp16xy;
this.PAN_Box.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.PAN_Box.Controls.Add(this.bpkx30);
this.PAN_Box.Controls.Add(this.bpkx29);
@@ -5734,7 +5734,7 @@ public void InitializeComponent()
this.MaximizeBox = false;
this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "PKHeX";
+ this.Text = "PKHeX.Core";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Main_FormClosing);
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.tabMain_DragDrop);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.tabMain_DragEnter);
diff --git a/PKHeX/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs
similarity index 89%
rename from PKHeX/MainWindow/Main.cs
rename to PKHeX.WinForms/MainWindow/Main.cs
index d75f7b785..80de291c6 100644
--- a/PKHeX/MainWindow/Main.cs
+++ b/PKHeX.WinForms/MainWindow/Main.cs
@@ -1,8 +1,8 @@
-using PKHeX.Misc;
-using System;
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
+using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Linq;
@@ -10,9 +10,9 @@
using System.Text;
using System.Threading;
using System.Windows.Forms;
-using PKHeX.Saves.Substructures;
+using PKHeX.Core;
-namespace PKHeX
+namespace PKHeX.WinForms
{
public partial class Main : Form
{
@@ -33,7 +33,7 @@ public Main()
try
{
DateTime upd = DateTime.ParseExact(data, "yyyyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None);
- DateTime cur = DateTime.ParseExact(Properties.Resources.ProgramVersion, "yyyyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None);
+ DateTime cur = DateTime.ParseExact(Core.Properties.Resources.ProgramVersion, "yyyyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None);
if (upd <= cur)
return;
@@ -102,7 +102,7 @@ public Main()
GB_CurrentMoves.Click += clickMoves;
GB_RelearnMoves.Click += clickMoves;
- TB_Nickname.Font = PKX.getPKXFont(11);
+ TB_Nickname.Font = FontUtil.getPKXFont(11);
TB_OT.Font = (Font)TB_Nickname.Font.Clone();
TB_OTt2.Font = (Font)TB_Nickname.Font.Clone();
@@ -122,7 +122,7 @@ public Main()
// Box to Tabs D&D
dragout.AllowDrop = true;
- FLP_SAVtools.Scroll += Util.PanelScroll;
+ FLP_SAVtools.Scroll += WinFormsUtil.PanelScroll;
// Load WC6 folder to legality
refreshWC6DB();
@@ -155,7 +155,12 @@ public Main()
string path = null;
try
{
- path = SaveUtil.detectSaveFile();
+ string cgse = "";
+ string pathCache = CyberGadgetUtil.GetCacheFolder();
+ if (Directory.Exists(pathCache))
+ cgse = Path.Combine(pathCache);
+ if (!SaveUtil.detectSaveFile(out path, cgse))
+ WinFormsUtil.Error(path);
}
catch (Exception ex)
{
@@ -177,7 +182,7 @@ public Main()
WindowState = FormWindowState.Minimized;
Show();
WindowState = FormWindowState.Normal;
- if (HaX) Util.Alert("Illegal mode activated.", "Please behave.");
+ if (HaX) WinFormsUtil.Alert("Illegal mode activated.", "Please behave.");
if (showChangelog)
new About().ShowDialog();
@@ -189,10 +194,9 @@ public Main()
}
#region Important Variables
- public static SaveFile SAV = new SAV7 { Game = (int)GameVersion.SN, OT = "PKHeX", TID = 12345, SID = 54321, Language = 2, Country = 49, SubRegion = 7, ConsoleRegion = 1 }; // Save File
+ public static SaveFile SAV = new SAV7 { Game = (int)GameVersion.SN, OT = "PKHeX.Core", TID = 12345, SID = 54321, Language = 2, Country = 49, SubRegion = 7, ConsoleRegion = 1 }; // Save File
public static PKM pkm = SAV.BlankPKM; // Tab Pokemon Data Storage
private LegalityAnalysis Legality = new LegalityAnalysis(pkm);
- public static GameInfo.GameStrings GameStrings;
public static string curlanguage = "en";
public static string[] gendersymbols = { "♂", "♀", "-" };
@@ -203,7 +207,7 @@ public Main()
private static Image colorizedcolor;
private static int colorizedslot;
public static bool HaX;
- private static readonly Image mixedHighlight = Util.ChangeOpacity(Properties.Resources.slotSet, 0.5);
+ private static readonly Image mixedHighlight = Util.ChangeOpacity(Core.Properties.Resources.slotSet, 0.5);
private static readonly string[] main_langlist =
{
"日本語", // JPN
@@ -223,12 +227,12 @@ public Main()
#region Path Variables
- public static string WorkingDirectory => Util.IsClickonceDeployed ? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "PKHeX") : Environment.CurrentDirectory;
+ public static string WorkingDirectory => WinFormsUtil.IsClickonceDeployed ? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "PKHeX.Core") : Environment.CurrentDirectory;
public static string DatabasePath => Path.Combine(WorkingDirectory, "pkmdb");
public static string MGDatabasePath => Path.Combine(WorkingDirectory, "mgdb");
private static string BackupPath => Path.Combine(WorkingDirectory, "bak");
- private static string ThreadPath => @"https://projectpokemon.org/pkhex/";
- private static string VersionPath => @"https://raw.githubusercontent.com/kwsch/PKHeX/master/PKHeX/Resources/text/version.txt";
+ private static string ThreadPath => @"https://projectpokemon.org/PKHeX.Core/";
+ private static string VersionPath => @"https://raw.githubusercontent.com/kwsch/PKHeX.Core/master/PKHeX.Core/Resources/text/version.txt";
#endregion
@@ -252,7 +256,7 @@ private void loadConfig(out bool BAKprompt, out bool showChangelog)
if (Properties.Settings.Default.Version.Length > 0) // already run on system
{
int lastrev; int.TryParse(Properties.Settings.Default.Version, out lastrev);
- int currrev; int.TryParse(Properties.Resources.ProgramVersion, out currrev);
+ int currrev; int.TryParse(Core.Properties.Resources.ProgramVersion, out currrev);
showChangelog = lastrev < currrev;
}
@@ -261,7 +265,7 @@ private void loadConfig(out bool BAKprompt, out bool showChangelog)
if (!Properties.Settings.Default.BAKPrompt)
BAKprompt = Properties.Settings.Default.BAKPrompt = true;
- Properties.Settings.Default.Version = Properties.Resources.ProgramVersion;
+ Properties.Settings.Default.Version = Core.Properties.Resources.ProgramVersion;
Properties.Settings.Default.Save();
}
// Main Menu Strip UI Functions
@@ -281,10 +285,17 @@ private void mainMenuOpen(object sender, EventArgs e)
"|Binary File|*.bin" +
"|Backup File|*.bak" +
"|All Files|*.*"
- };
+ };
// Detect main
- string path = SaveUtil.detectSaveFile();
+ string cgse = "";
+ string path;
+ string pathCache = CyberGadgetUtil.GetCacheFolder();
+ if (Directory.Exists(pathCache))
+ cgse = Path.Combine(pathCache);
+ if (!SaveUtil.detectSaveFile(out path, cgse))
+ WinFormsUtil.Error(path);
+
if (path != null)
{ ofd.FileName = path; }
@@ -327,14 +338,14 @@ private void mainMenuSave(object sender, EventArgs e)
File.WriteAllBytes(path, pk.DecryptedBoxData);
else
{
- Util.Error($"Foreign File Extension: {ext}", "Exporting as encrypted.");
+ WinFormsUtil.Error($"Foreign File Extension: {ext}", "Exporting as encrypted.");
File.WriteAllBytes(path, pkm.EncryptedPartyData);
}
}
private void mainMenuExit(object sender, EventArgs e)
{
if (ModifierKeys == Keys.Control) // Hotkey Triggered
- if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX?")) return;
+ if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX.Core?")) return;
Close();
}
private void mainMenuAbout(object sender, EventArgs e)
@@ -347,7 +358,7 @@ private void mainMenuBoxReport(object sender, EventArgs e)
{
var z = Application.OpenForms.Cast