From 8e3fbf4e98fc1689aa356f8476b5c20f078ed499 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Sun, 4 Sep 2016 10:38:53 -0700 Subject: [PATCH] Add mystery gift database &search Closes #227 --- PKHeX/MainWindow/Main.Designer.cs | 89 +- PKHeX/MainWindow/Main.cs | 13 +- PKHeX/MainWindow/Main.resx | 421 ++-- PKHeX/MysteryGifts/MysteryGift.cs | 16 +- PKHeX/MysteryGifts/PGF.cs | 19 +- PKHeX/MysteryGifts/PGT.cs | 21 +- PKHeX/MysteryGifts/WC6.cs | 19 +- PKHeX/PKHeX.csproj | 10 + PKHeX/Properties/Resources.Designer.cs | 10 + PKHeX/Properties/Resources.resx | 3 + PKHeX/Resources/img/Program/gift.png | Bin 0 -> 617 bytes PKHeX/Subforms/SAV_MysteryGiftDB.Designer.cs | 1716 +++++++++++++++++ PKHeX/Subforms/SAV_MysteryGiftDB.cs | 351 ++++ PKHeX/Subforms/SAV_MysteryGiftDB.resx | 420 ++++ PKHeX/Subforms/Save Editors/SAV_Wondercard.cs | 4 +- 15 files changed, 2853 insertions(+), 259 deletions(-) create mode 100644 PKHeX/Resources/img/Program/gift.png create mode 100644 PKHeX/Subforms/SAV_MysteryGiftDB.Designer.cs create mode 100644 PKHeX/Subforms/SAV_MysteryGiftDB.cs create mode 100644 PKHeX/Subforms/SAV_MysteryGiftDB.resx diff --git a/PKHeX/MainWindow/Main.Designer.cs b/PKHeX/MainWindow/Main.Designer.cs index 3213eec8f..d48ef9d03 100644 --- a/PKHeX/MainWindow/Main.Designer.cs +++ b/PKHeX/MainWindow/Main.Designer.cs @@ -78,6 +78,8 @@ public void InitializeComponent() this.MT_Level = new System.Windows.Forms.MaskedTextBox(); this.DEV_Ability = new System.Windows.Forms.ComboBox(); this.Tab_Met = new System.Windows.Forms.TabPage(); + this.L_MetTimeOfDay = new System.Windows.Forms.Label(); + this.CB_MetTimeOfDay = new System.Windows.Forms.ComboBox(); this.CHK_AsEgg = new System.Windows.Forms.CheckBox(); this.CHK_Fateful = new System.Windows.Forms.CheckBox(); this.GB_EggConditions = new System.Windows.Forms.GroupBox(); @@ -233,6 +235,7 @@ public void InitializeComponent() this.Menu_DumpBoxes = new System.Windows.Forms.ToolStripMenuItem(); this.Menu_Report = new System.Windows.Forms.ToolStripMenuItem(); this.Menu_Database = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_MGDatabase = new System.Windows.Forms.ToolStripMenuItem(); this.Menu_BatchEditor = new System.Windows.Forms.ToolStripMenuItem(); this.Menu_Other = new System.Windows.Forms.ToolStripMenuItem(); this.Menu_OpenSDF = new System.Windows.Forms.ToolStripMenuItem(); @@ -363,8 +366,6 @@ public void InitializeComponent() this.mnuLSave = new System.Windows.Forms.ToolStripMenuItem(); this.PB_Legal = new System.Windows.Forms.PictureBox(); this.L_UpdateAvailable = new System.Windows.Forms.LinkLabel(); - this.L_MetTimeOfDay = new System.Windows.Forms.Label(); - this.CB_MetTimeOfDay = new System.Windows.Forms.ComboBox(); this.tabMain.SuspendLayout(); this.Tab_Main.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Label_IsShiny)).BeginInit(); @@ -1069,6 +1070,33 @@ public void InitializeComponent() this.Tab_Met.Text = "Met"; this.Tab_Met.UseVisualStyleBackColor = true; // + // L_MetTimeOfDay + // + this.L_MetTimeOfDay.Location = new System.Drawing.Point(25, 165); + this.L_MetTimeOfDay.Name = "L_MetTimeOfDay"; + this.L_MetTimeOfDay.Size = new System.Drawing.Size(77, 13); + this.L_MetTimeOfDay.TabIndex = 10; + this.L_MetTimeOfDay.Text = "Time of Day:"; + this.L_MetTimeOfDay.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.L_MetTimeOfDay.Visible = false; + // + // CB_MetTimeOfDay + // + this.CB_MetTimeOfDay.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_MetTimeOfDay.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_MetTimeOfDay.DropDownWidth = 150; + this.CB_MetTimeOfDay.FormattingEnabled = true; + this.CB_MetTimeOfDay.Items.AddRange(new object[] { + "(None)", + "Morning", + "Day", + "Night"}); + this.CB_MetTimeOfDay.Location = new System.Drawing.Point(105, 162); + this.CB_MetTimeOfDay.Name = "CB_MetTimeOfDay"; + this.CB_MetTimeOfDay.Size = new System.Drawing.Size(122, 21); + this.CB_MetTimeOfDay.TabIndex = 11; + this.CB_MetTimeOfDay.Visible = false; + // // CHK_AsEgg // this.CHK_AsEgg.AutoSize = true; @@ -2762,7 +2790,7 @@ public void InitializeComponent() this.Menu_ShowdownExportBattleBox}); this.Menu_Showdown.Image = global::PKHeX.Properties.Resources.showdown; this.Menu_Showdown.Name = "Menu_Showdown"; - this.Menu_Showdown.Size = new System.Drawing.Size(143, 22); + this.Menu_Showdown.Size = new System.Drawing.Size(152, 22); this.Menu_Showdown.Text = "Showdown"; // // Menu_ShowdownImportPKM @@ -2809,7 +2837,7 @@ public void InitializeComponent() this.Menu_OpenCache}); this.Menu_CyberGadget.Image = global::PKHeX.Properties.Resources.other; this.Menu_CyberGadget.Name = "Menu_CyberGadget"; - this.Menu_CyberGadget.Size = new System.Drawing.Size(143, 22); + this.Menu_CyberGadget.Size = new System.Drawing.Size(152, 22); this.Menu_CyberGadget.Text = "CyberGadget"; // // Menu_OpenTemp @@ -2835,17 +2863,18 @@ public void InitializeComponent() this.Menu_DumpBoxes, this.Menu_Report, this.Menu_Database, + this.Menu_MGDatabase, this.Menu_BatchEditor}); this.Menu_Data.Image = global::PKHeX.Properties.Resources.data; this.Menu_Data.Name = "Menu_Data"; - this.Menu_Data.Size = new System.Drawing.Size(143, 22); + this.Menu_Data.Size = new System.Drawing.Size(152, 22); this.Menu_Data.Text = "Data"; // // Menu_LoadBoxes // this.Menu_LoadBoxes.Image = global::PKHeX.Properties.Resources.load; this.Menu_LoadBoxes.Name = "Menu_LoadBoxes"; - this.Menu_LoadBoxes.Size = new System.Drawing.Size(151, 22); + this.Menu_LoadBoxes.Size = new System.Drawing.Size(182, 22); this.Menu_LoadBoxes.Text = "Load Boxes"; this.Menu_LoadBoxes.Click += new System.EventHandler(this.mainMenuBoxLoad); // @@ -2853,7 +2882,7 @@ public void InitializeComponent() // this.Menu_DumpBoxes.Image = global::PKHeX.Properties.Resources.dump; this.Menu_DumpBoxes.Name = "Menu_DumpBoxes"; - this.Menu_DumpBoxes.Size = new System.Drawing.Size(151, 22); + this.Menu_DumpBoxes.Size = new System.Drawing.Size(182, 22); this.Menu_DumpBoxes.Text = "Dump Boxes"; this.Menu_DumpBoxes.Click += new System.EventHandler(this.mainMenuBoxDump); // @@ -2863,7 +2892,7 @@ public void InitializeComponent() 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; - this.Menu_Report.Size = new System.Drawing.Size(151, 22); + this.Menu_Report.Size = new System.Drawing.Size(182, 22); this.Menu_Report.Text = "Box Data &Report"; this.Menu_Report.Click += new System.EventHandler(this.mainMenuBoxReport); // @@ -2873,17 +2902,27 @@ public void InitializeComponent() 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; - this.Menu_Database.Size = new System.Drawing.Size(151, 22); + this.Menu_Database.Size = new System.Drawing.Size(182, 22); this.Menu_Database.Text = "PK6 &Database"; this.Menu_Database.Click += new System.EventHandler(this.mainMenuDatabase); // + // Menu_MGDatabase + // + this.Menu_MGDatabase.Image = global::PKHeX.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; + this.Menu_MGDatabase.Size = new System.Drawing.Size(182, 22); + this.Menu_MGDatabase.Text = "&Mystery Gift Database"; + this.Menu_MGDatabase.Click += new System.EventHandler(this.mainMenuMysteryDM); + // // Menu_BatchEditor // this.Menu_BatchEditor.Image = global::PKHeX.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; - this.Menu_BatchEditor.Size = new System.Drawing.Size(151, 22); + this.Menu_BatchEditor.Size = new System.Drawing.Size(182, 22); this.Menu_BatchEditor.Text = "Batch Editor"; this.Menu_BatchEditor.Click += new System.EventHandler(this.manMenuBatchEditor); // @@ -2894,7 +2933,7 @@ public void InitializeComponent() this.Menu_OpenSDB}); this.Menu_Other.Image = global::PKHeX.Properties.Resources.other; this.Menu_Other.Name = "Menu_Other"; - this.Menu_Other.Size = new System.Drawing.Size(143, 22); + this.Menu_Other.Size = new System.Drawing.Size(152, 22); this.Menu_Other.Text = "Other"; // // Menu_OpenSDF @@ -4611,33 +4650,6 @@ public void InitializeComponent() this.L_UpdateAvailable.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.L_UpdateAvailable.Visible = false; // - // L_MetTimeOfDay - // - this.L_MetTimeOfDay.Location = new System.Drawing.Point(25, 165); - this.L_MetTimeOfDay.Name = "L_MetTimeOfDay"; - this.L_MetTimeOfDay.Size = new System.Drawing.Size(77, 13); - this.L_MetTimeOfDay.TabIndex = 10; - this.L_MetTimeOfDay.Text = "Time of Day:"; - this.L_MetTimeOfDay.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.L_MetTimeOfDay.Visible = false; - // - // CB_MetTimeOfDay - // - this.CB_MetTimeOfDay.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CB_MetTimeOfDay.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CB_MetTimeOfDay.DropDownWidth = 150; - this.CB_MetTimeOfDay.FormattingEnabled = true; - this.CB_MetTimeOfDay.Items.AddRange(new object[] { - "(None)", - "Morning", - "Day", - "Night"}); - this.CB_MetTimeOfDay.Location = new System.Drawing.Point(105, 162); - this.CB_MetTimeOfDay.Name = "CB_MetTimeOfDay"; - this.CB_MetTimeOfDay.Size = new System.Drawing.Size(122, 21); - this.CB_MetTimeOfDay.TabIndex = 11; - this.CB_MetTimeOfDay.Visible = false; - // // Main // this.AllowDrop = true; @@ -5121,6 +5133,7 @@ public void InitializeComponent() private System.Windows.Forms.LinkLabel L_UpdateAvailable; private System.Windows.Forms.Label L_MetTimeOfDay; public System.Windows.Forms.ComboBox CB_MetTimeOfDay; + private System.Windows.Forms.ToolStripMenuItem Menu_MGDatabase; } } diff --git a/PKHeX/MainWindow/Main.cs b/PKHeX/MainWindow/Main.cs index f7a889044..ab9df59cc 100644 --- a/PKHeX/MainWindow/Main.cs +++ b/PKHeX/MainWindow/Main.cs @@ -208,7 +208,7 @@ public Main() public static string WorkingDirectory => Environment.CurrentDirectory; public static string DatabasePath => Path.Combine(WorkingDirectory, "db"); - private static string WC6DatabasePath => Path.Combine(WorkingDirectory, "wc6"); + public static string WC6DatabasePath => Path.Combine(WorkingDirectory, "wc6"); private static string BackupPath => Path.Combine(WorkingDirectory, "bak"); private static string ThreadPath => @"https://projectpokemon.org/forums/showthread.php?36986"; private static string VersionPath => @"https://raw.githubusercontent.com/kwsch/PKHeX/master/PKHeX/Resources/text/version.txt"; @@ -327,6 +327,15 @@ private void mainMenuDatabase(object sender, EventArgs e) Util.Alert("PKHeX's database was not found.", $"Please dump all boxes from a save file, then ensure the '{DatabasePath}' folder exists."); } + private void mainMenuMysteryDM(object sender, EventArgs e) + { + var z = Application.OpenForms.Cast
().FirstOrDefault(form => form.GetType() == typeof(SAV_MysteryGiftDB)) as SAV_MysteryGiftDB; + if (z != null) + { Util.CenterToForm(z, this); z.BringToFront(); return; } + + new SAV_MysteryGiftDB(this).Show(); + + } private void mainMenuUnicode(object sender, EventArgs e) { unicode = Menu_Unicode.Checked; @@ -1048,7 +1057,7 @@ private static void refreshWC6DB() for (int i = 0; i < wc6full.Length; i += WC6.SizeFull) { byte[] data = new byte[WC6.SizeFull]; - Array.Copy(wc6bin, i, data, 0, WC6.SizeFull); + Array.Copy(wc6full, i, data, 0, WC6.SizeFull); wc6db.Add(new WC6(data)); } diff --git a/PKHeX/MainWindow/Main.resx b/PKHeX/MainWindow/Main.resx index 08b78235e..6659fcbca 100644 --- a/PKHeX/MainWindow/Main.resx +++ b/PKHeX/MainWindow/Main.resx @@ -252,6 +252,155 @@ True + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + + + iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAHhJREFUKFNjQAf/BQQ6oEzc4L+QUOh/QcH///n5jaFCmAAoKfhPUPAuWKGg4BkM + xSCroJLYMbJT/gkIzMSmCCQOVYIAQIkzKIqAzoBKoQIk98EUvoNKIQDII2AFAgKrgGwlMA3iY3gIKAAK + GigXDIB8F3QxIgADAwC7NFU/mWb72QAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAHhJREFUKFNjQAf/BQQ6oEzc4L+QUOh/QcH///n5jaFCmAAoKfhPUPAuWKGg4BkM + xSCroJLYMbJT/gkIzMSmCCQOVYIAQIkzKIqAzoBKoQIk98EUvoNKIQDII2AFAgKrgGwlMA3iY3gIKAAK + GigXDIB8F3QxIgADAwC7NFU/mWb72QAAAABJRU5ErkJggg== + + + + True + + + True + + + True + + + True + + + True + True @@ -261,6 +410,63 @@ True + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + True @@ -462,194 +668,6 @@ True - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - - - iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHhJREFUKFNjQAf/BQQ6oEzc4L+QUOh/QcH///n5jaFCmAAoKfhPUPAuWKGg4BkM - xSCroJLYMbJT/gkIzMSmCCQOVYIAQIkzKIqAzoBKoQIk98EUvoNKIQDII2AFAgKrgGwlMA3iY3gIKAAK - GigXDIB8F3QxIgADAwC7NFU/mWb72QAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHhJREFUKFNjQAf/BQQ6oEzc4L+QUOh/QcH///n5jaFCmAAoKfhPUPAuWKGg4BkM - xSCroJLYMbJT/gkIzMSmCCQOVYIAQIkzKIqAzoBKoQIk98EUvoNKIQDII2AFAgKrgGwlMA3iY3gIKAAK - GigXDIB8F3QxIgADAwC7NFU/mWb72QAAAABJRU5ErkJggg== - - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - True @@ -806,6 +824,24 @@ True + + True + + + True + + + True + + + True + + + True + + + True + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAeZJREFUOE+1 @@ -1068,6 +1104,15 @@ True + + True + + + True + + + True + True diff --git a/PKHeX/MysteryGifts/MysteryGift.cs b/PKHeX/MysteryGifts/MysteryGift.cs index a8e1d07af..95933c87d 100644 --- a/PKHeX/MysteryGifts/MysteryGift.cs +++ b/PKHeX/MysteryGifts/MysteryGift.cs @@ -42,8 +42,10 @@ internal static MysteryGift getMysteryGift(byte[] data) } public abstract string Extension { get; } + public string FileName => getCardHeader() + "." + Extension; public virtual byte[] Data { get; set; } public abstract PKM convertToPKM(SaveFile SAV); + public abstract int Format { get; } public MysteryGift Clone() { @@ -64,6 +66,18 @@ public MysteryGift Clone() public virtual int Quantity { get { return 1; } set { } } public bool Empty => Data.SequenceEqual(new byte[Data.Length]); - public string getCardHeader() => (CardID > 0 ? $"Card #: {CardID.ToString("0000")}" : "N/A") + $" - {CardTitle.Replace('\u3000',' ').Trim()}" + Environment.NewLine; + public string getCardHeader() => (CardID > 0 ? $"Card #: {CardID.ToString("0000")}" : "N/A") + $" - {CardTitle.Replace('\u3000',' ').Trim()}"; + + // Search Properties + public virtual int Species { get { return -1; } set { } } + public virtual int[] Moves => new int[0]; + public virtual bool IsShiny => false; + public virtual bool IsEgg { get { return false; } set { } } + public virtual int HeldItem { get { return -1; } set { } } + public bool Gen7 => Format == 7; + public bool Gen6 => Format == 6; + public bool Gen5 => Format == 5; + public bool Gen4 => Format == 4; + public bool Gen3 => Format == 3; } } diff --git a/PKHeX/MysteryGifts/PGF.cs b/PKHeX/MysteryGifts/PGF.cs index f58b383e5..60a83281f 100644 --- a/PKHeX/MysteryGifts/PGF.cs +++ b/PKHeX/MysteryGifts/PGF.cs @@ -6,7 +6,8 @@ namespace PKHeX public sealed class PGF : MysteryGift { internal const int Size = 0xCC; - public override string Extension => ".pgf"; + public override string Extension => "pgf"; + public override int Format => 5; public PGF(byte[] data = null) { @@ -41,12 +42,13 @@ public PGF(byte[] data = null) public bool RIB1_7 { get { return (RIB1 & (1 << 7)) == 1 << 7; } set { RIB1 = (byte)(RIB1 & ~(1 << 7) | (value ? 1 << 7 : 0)); } } // Empty public int Pokéball { get { return Data[0x0E]; } set { Data[0x0E] = (byte)value; } } - public int HeldItem { get { return BitConverter.ToUInt16(Data, 0x10); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x10); } } + public override int HeldItem { get { return BitConverter.ToUInt16(Data, 0x10); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x10); } } public int Move1 { get { return BitConverter.ToUInt16(Data, 0x12); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x12); } } public int Move2 { get { return BitConverter.ToUInt16(Data, 0x14); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x14); } } public int Move3 { get { return BitConverter.ToUInt16(Data, 0x16); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x16); } } public int Move4 { get { return BitConverter.ToUInt16(Data, 0x18); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x18); } } - public int Species { get { return BitConverter.ToUInt16(Data, 0x1A); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x1A); } } + public override int Species { get { return BitConverter.ToUInt16(Data, 0x1A); } + } public int Form { get { return Data[0x1C]; } set { Data[0x1C] = (byte)value; } } public int Language { get { return Data[0x1D]; } set { Data[0x1D] = (byte)value; } } public string Nickname @@ -79,7 +81,7 @@ public string Nickname set { Encoding.Unicode.GetBytes(value.PadRight(0x08, (char)0xFFFF)).CopyTo(Data, 0x4A); } } public int OTGender { get { return Data[0x5A]; } set { Data[0x5A] = (byte)value; } } public int Level { get { return Data[0x5B]; } set { Data[0x5C] = (byte)value; } } - public bool IsEgg { get { return Data[0x5C] == 1; } set { Data[0x5C] = (byte)(value ? 1 : 0); } } + public override bool IsEgg { get { return Data[0x5C] == 1; } set { Data[0x5C] = (byte)(value ? 1 : 0); } } // Unused 0x5D 0x5E 0x5F public override string CardTitle { @@ -142,16 +144,9 @@ public override int CardID public int[] IVs => new[] { IV_HP, IV_ATK, IV_DEF, IV_SPE, IV_SPA, IV_SPD }; public bool IsNicknamed => Nickname.Length > 0; - public int[] Moves + public override int[] Moves { get { return new[] { Move1, Move2, Move3, Move4 }; } - set - { - if (value.Length > 0) Move1 = value[0]; - if (value.Length > 1) Move2 = value[1]; - if (value.Length > 2) Move3 = value[2]; - if (value.Length > 3) Move4 = value[3]; - } } public override bool IsPokémon { get { return CardType == 1; } set { if (value) CardType = 1; } } public override bool IsItem { get { return CardType == 2; } set { if (value) CardType = 2; } } diff --git a/PKHeX/MysteryGifts/PGT.cs b/PKHeX/MysteryGifts/PGT.cs index 25c935e3c..98e1c65a2 100644 --- a/PKHeX/MysteryGifts/PGT.cs +++ b/PKHeX/MysteryGifts/PGT.cs @@ -11,7 +11,8 @@ namespace PKHeX public sealed class PCD : MysteryGift { internal const int Size = 0x358; // 856 - public override string Extension => ".pcd"; + public override string Extension => "pcd"; + public override int Format => 4; public PCD(byte[] data = null) { @@ -50,6 +51,12 @@ public override string CardTitle } } + public override int Species => Gift.PK.Species; + public override int[] Moves => Gift.PK.Moves; + public override bool IsShiny => Gift.PK.IsShiny; + public override bool IsEgg => Gift.PK.IsEgg; + public override int HeldItem => Gift.PK.HeldItem; + public override PKM convertToPKM(SaveFile SAV) { return Gift.convertToPKM(SAV); @@ -58,7 +65,8 @@ public override PKM convertToPKM(SaveFile SAV) public class PGT : MysteryGift { internal const int Size = 0x104; // 260 - public override string Extension => ".pgt"; + public override string Extension => "pgt"; + public override int Format => 4; private enum GiftType { @@ -103,7 +111,7 @@ private void refreshData(byte[] data) public byte Slot { get { return Data[2]; } set { Data[2] = value; } } public byte Detail { get { return Data[3]; } set { Data[3] = value; } } public override int Item { get { return BitConverter.ToUInt16(Data, 0x4); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x4); } } - private PK4 PK; + public PK4 PK; private byte[] Unknown; private byte[] RAW; @@ -118,11 +126,16 @@ public override byte[] Data private GiftType PGTGiftType { get { return (GiftType)Data[0]; } set {Data[0] = (byte)value; } } public bool IsHatched => PGTGiftType == GiftType.Pokémon; - public bool IsEgg => PGTGiftType == GiftType.PokémonEgg; + public override bool IsEgg => PGTGiftType == GiftType.PokémonEgg; public bool IsManaphyEgg => PGTGiftType == GiftType.ManaphyEgg; public override bool IsItem { get { return PGTGiftType == GiftType.Item; } set { if (value) CardType = (int)GiftType.Item; } } public override bool IsPokémon { get { return PGTGiftType == GiftType.Pokémon || PGTGiftType == GiftType.PokémonEgg || PGTGiftType == GiftType.ManaphyEgg; } set { } } + public override int Species => PK.Species; + public override int[] Moves => PK.Moves; + public override bool IsShiny => PK.IsShiny; + public override int HeldItem => PK.HeldItem; + public override PKM convertToPKM(SaveFile SAV) { if (!IsPokémon) diff --git a/PKHeX/MysteryGifts/WC6.cs b/PKHeX/MysteryGifts/WC6.cs index 37305bb4e..9541d1d17 100644 --- a/PKHeX/MysteryGifts/WC6.cs +++ b/PKHeX/MysteryGifts/WC6.cs @@ -9,7 +9,8 @@ public sealed class WC6 : MysteryGift internal const int Size = 0x108; internal const int SizeFull = 0x310; internal const uint EonTicketConst = 0x225D73C2; - public override string Extension => ".wc6"; + public override string Extension => "wc6"; + public override int Format => 6; public WC6(byte[] data = null) { @@ -94,6 +95,7 @@ public WC6(byte[] data = null) // Pokémon Properties public override bool IsPokémon { get { return CardType == 0; } set { if (value) CardType = 0; } } + public override bool IsShiny { get { return PIDType == 2; } } public int TID { get { return BitConverter.ToUInt16(Data, 0x68); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x68); } } @@ -109,7 +111,7 @@ public WC6(byte[] data = null) public int Pokéball { get { return Data[0x76]; } set { Data[0x76] = (byte)value; } } - public int HeldItem { + public override int HeldItem { get { return BitConverter.ToUInt16(Data, 0x78); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x78); } } public int Move1 { @@ -124,7 +126,7 @@ public WC6(byte[] data = null) public int Move4 { get { return BitConverter.ToUInt16(Data, 0x80); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x80); } } - public int Species { + public override int Species { get { return BitConverter.ToUInt16(Data, 0x82); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x82); } } public int Form { @@ -174,7 +176,7 @@ public WC6(byte[] data = null) get { return Util.TrimFromZero(Encoding.Unicode.GetString(Data, 0xB6, 0x1A)); } set { Encoding.Unicode.GetBytes(value.PadRight(value.Length + 1, '\0')).CopyTo(Data, 0xB6); } } public int Level { get { return Data[0xD0]; } set { Data[0xD0] = (byte)value; } } - public bool IsEgg { get { return Data[0xD1] == 1; } set { Data[0xD1] = (byte)(value ? 1 : 0); } } + public override bool IsEgg { get { return Data[0xD1] == 1; } set { Data[0xD1] = (byte)(value ? 1 : 0); } } public uint PID { get { return BitConverter.ToUInt32(Data, 0xD4); } set { BitConverter.GetBytes(value).CopyTo(Data, 0xD4); } } @@ -218,16 +220,9 @@ public WC6(byte[] data = null) public int[] IVs => new[] { IV_HP, IV_ATK, IV_DEF, IV_SPE, IV_SPA, IV_SPD }; public bool IsNicknamed => Nickname.Length > 0; - public int[] Moves + public override int[] Moves { get { return new[] {Move1, Move2, Move3, Move4}; } - set - { - if (value.Length > 0) Move1 = value[0]; - if (value.Length > 1) Move2 = value[1]; - if (value.Length > 2) Move3 = value[2]; - if (value.Length > 3) Move4 = value[3]; - } } public int[] RelearnMoves { diff --git a/PKHeX/PKHeX.csproj b/PKHeX/PKHeX.csproj index 27edae06b..a5eaa88f4 100644 --- a/PKHeX/PKHeX.csproj +++ b/PKHeX/PKHeX.csproj @@ -213,6 +213,12 @@ SAV_SimplePokedex.cs + + Form + + + SAV_MysteryGiftDB.cs + Form @@ -370,6 +376,9 @@ SAV_SimplePokedex.cs + + SAV_MysteryGiftDB.cs + SAV_Database.cs @@ -2756,6 +2765,7 @@ + diff --git a/PKHeX/Properties/Resources.Designer.cs b/PKHeX/Properties/Resources.Designer.cs index bcdc7efb3..4536a233d 100644 --- a/PKHeX/Properties/Resources.Designer.cs +++ b/PKHeX/Properties/Resources.Designer.cs @@ -10982,6 +10982,16 @@ internal class Resources { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap gift { + get { + object obj = ResourceManager.GetObject("gift", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/PKHeX/Properties/Resources.resx b/PKHeX/Properties/Resources.resx index dd7542c63..0b33dc3b6 100644 --- a/PKHeX/Properties/Resources.resx +++ b/PKHeX/Properties/Resources.resx @@ -6415,4 +6415,7 @@ ..\Resources\img\Pokemon Sprites\172_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\img\Program\gift.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/PKHeX/Resources/img/Program/gift.png b/PKHeX/Resources/img/Program/gift.png new file mode 100644 index 0000000000000000000000000000000000000000..ce760c3ca9a1bd915e4348d8f7ebda9cbefa9b6f GIT binary patch literal 617 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl47zG1-LR^7dk^lz>2PY>7BO@bL zT`n#TtgNieV1TR!C=OT8#>NUXfrW(yE&^cy)c~~swF9N#dVy>gE$s!I18p;pa{?$p!q-rK=ASC_M1R{U`dc)FoVhC zk8?!D7k+tUxFSQi^S-La;}(J3#Vs4S84E95PUYEL&&WRa)uO65&+=c*WMgSv^`W-r zU59x?Q$xWY2w>%8;^i-S^5p5WCq<1d#osSnKL#{>o2QFoh(x$=uc9Awpafg`x4-L? zHcy)3G+FPZq6NcB$AlePOu@ZJ3K^tUFfl5+ZpfEkH2c8wXTrvetNs}T+X`IxwVj#q zF3aw?$p6-hE`QdWQ?L8w(an8#cScA}_dXu-Xky(~FXwx#Hy64vdN^nGd|AY`=lU$K znj?p&<}q%%c0(v-Z`<#)XKqcIz5Bsuo`mG+MIXEjm{jJTIe0PO_LJ4JxV5YgzF0F% qK709}*oDan^Q2|JGwjsN-=DwA + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SAV_MysteryGiftDB)); + this.SCR_Box = new System.Windows.Forms.VScrollBar(); + this.bpkx30 = new System.Windows.Forms.PictureBox(); + this.bpkx29 = new System.Windows.Forms.PictureBox(); + this.bpkx28 = new System.Windows.Forms.PictureBox(); + this.bpkx27 = new System.Windows.Forms.PictureBox(); + this.bpkx26 = new System.Windows.Forms.PictureBox(); + this.bpkx25 = new System.Windows.Forms.PictureBox(); + this.bpkx24 = new System.Windows.Forms.PictureBox(); + this.bpkx23 = new System.Windows.Forms.PictureBox(); + this.bpkx22 = new System.Windows.Forms.PictureBox(); + this.bpkx21 = new System.Windows.Forms.PictureBox(); + this.bpkx20 = new System.Windows.Forms.PictureBox(); + this.bpkx19 = new System.Windows.Forms.PictureBox(); + this.bpkx18 = new System.Windows.Forms.PictureBox(); + this.bpkx17 = new System.Windows.Forms.PictureBox(); + this.bpkx16 = new System.Windows.Forms.PictureBox(); + this.bpkx15 = new System.Windows.Forms.PictureBox(); + this.bpkx14 = new System.Windows.Forms.PictureBox(); + this.bpkx13 = new System.Windows.Forms.PictureBox(); + this.bpkx12 = new System.Windows.Forms.PictureBox(); + this.bpkx11 = new System.Windows.Forms.PictureBox(); + this.bpkx10 = new System.Windows.Forms.PictureBox(); + this.bpkx9 = new System.Windows.Forms.PictureBox(); + this.bpkx8 = new System.Windows.Forms.PictureBox(); + this.bpkx7 = new System.Windows.Forms.PictureBox(); + this.bpkx6 = new System.Windows.Forms.PictureBox(); + this.bpkx5 = new System.Windows.Forms.PictureBox(); + this.bpkx4 = new System.Windows.Forms.PictureBox(); + this.bpkx3 = new System.Windows.Forms.PictureBox(); + this.bpkx2 = new System.Windows.Forms.PictureBox(); + this.bpkx1 = new System.Windows.Forms.PictureBox(); + this.bpkx60 = new System.Windows.Forms.PictureBox(); + this.bpkx59 = new System.Windows.Forms.PictureBox(); + this.bpkx58 = new System.Windows.Forms.PictureBox(); + this.bpkx57 = new System.Windows.Forms.PictureBox(); + this.bpkx56 = new System.Windows.Forms.PictureBox(); + this.bpkx55 = new System.Windows.Forms.PictureBox(); + this.bpkx54 = new System.Windows.Forms.PictureBox(); + this.bpkx53 = new System.Windows.Forms.PictureBox(); + this.bpkx52 = new System.Windows.Forms.PictureBox(); + this.bpkx51 = new System.Windows.Forms.PictureBox(); + this.bpkx50 = new System.Windows.Forms.PictureBox(); + this.bpkx49 = new System.Windows.Forms.PictureBox(); + this.bpkx48 = new System.Windows.Forms.PictureBox(); + this.bpkx47 = new System.Windows.Forms.PictureBox(); + this.bpkx46 = new System.Windows.Forms.PictureBox(); + this.bpkx45 = new System.Windows.Forms.PictureBox(); + this.bpkx44 = new System.Windows.Forms.PictureBox(); + this.bpkx43 = new System.Windows.Forms.PictureBox(); + this.bpkx42 = new System.Windows.Forms.PictureBox(); + this.bpkx41 = new System.Windows.Forms.PictureBox(); + this.bpkx40 = new System.Windows.Forms.PictureBox(); + this.bpkx39 = new System.Windows.Forms.PictureBox(); + this.bpkx38 = new System.Windows.Forms.PictureBox(); + this.bpkx37 = new System.Windows.Forms.PictureBox(); + this.bpkx36 = new System.Windows.Forms.PictureBox(); + this.bpkx35 = new System.Windows.Forms.PictureBox(); + this.bpkx34 = new System.Windows.Forms.PictureBox(); + this.bpkx33 = new System.Windows.Forms.PictureBox(); + this.bpkx32 = new System.Windows.Forms.PictureBox(); + this.bpkx31 = new System.Windows.Forms.PictureBox(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.Menu_Close = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_Exit = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_Tools = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchSettings = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchBoxes = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchDatabase = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchLegal = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchIllegal = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_SearchAdvanced = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_OpenDB = new System.Windows.Forms.ToolStripMenuItem(); + this.Menu_Export = new System.Windows.Forms.ToolStripMenuItem(); + this.P_Results = new System.Windows.Forms.Panel(); + this.PAN_Box = new System.Windows.Forms.Panel(); + this.bpkx66 = new System.Windows.Forms.PictureBox(); + this.bpkx65 = new System.Windows.Forms.PictureBox(); + this.bpkx64 = new System.Windows.Forms.PictureBox(); + this.bpkx63 = new System.Windows.Forms.PictureBox(); + this.bpkx62 = new System.Windows.Forms.PictureBox(); + this.bpkx61 = new System.Windows.Forms.PictureBox(); + this.CB_HeldItem = new System.Windows.Forms.ComboBox(); + this.CB_Species = new System.Windows.Forms.ComboBox(); + this.CB_Move4 = new System.Windows.Forms.ComboBox(); + this.CB_Move3 = new System.Windows.Forms.ComboBox(); + this.CB_Move2 = new System.Windows.Forms.ComboBox(); + this.CB_Move1 = new System.Windows.Forms.ComboBox(); + this.Label_HeldItem = new System.Windows.Forms.Label(); + this.Label_Species = new System.Windows.Forms.Label(); + this.B_Search = new System.Windows.Forms.Button(); + this.L_Move1 = new System.Windows.Forms.Label(); + this.L_Move2 = new System.Windows.Forms.Label(); + this.L_Move3 = new System.Windows.Forms.Label(); + this.L_Move4 = new System.Windows.Forms.Label(); + this.B_Reset = new System.Windows.Forms.Button(); + this.L_Count = new System.Windows.Forms.Label(); + this.L_Viewed = new System.Windows.Forms.Label(); + this.FLP_Egg = new System.Windows.Forms.FlowLayoutPanel(); + this.CHK_IsEgg = new System.Windows.Forms.CheckBox(); + this.CHK_Shiny = new System.Windows.Forms.CheckBox(); + this.TLP_Filters = new System.Windows.Forms.TableLayoutPanel(); + this.FLP_Format = new System.Windows.Forms.FlowLayoutPanel(); + this.CB_FormatComparator = new System.Windows.Forms.ComboBox(); + this.CB_Format = new System.Windows.Forms.ComboBox(); + this.L_Format = new System.Windows.Forms.Label(); + this.FLP_Level = new System.Windows.Forms.FlowLayoutPanel(); + this.RTB_Instructions = new System.Windows.Forms.RichTextBox(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx30)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx29)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx28)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx27)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx26)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx25)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx24)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx23)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx22)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx21)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx20)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx60)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx59)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx58)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx57)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx56)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx55)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx54)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx53)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx52)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx51)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx50)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx49)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx48)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx47)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx46)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx45)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx44)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx43)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx42)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx41)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx40)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx39)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx38)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx37)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx36)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx35)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx34)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx33)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx32)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx31)).BeginInit(); + this.menuStrip1.SuspendLayout(); + this.P_Results.SuspendLayout(); + this.PAN_Box.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx66)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx65)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx64)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx63)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx62)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx61)).BeginInit(); + this.FLP_Egg.SuspendLayout(); + this.TLP_Filters.SuspendLayout(); + this.FLP_Format.SuspendLayout(); + this.SuspendLayout(); + // + // SCR_Box + // + this.SCR_Box.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.SCR_Box.LargeChange = 1; + this.SCR_Box.Location = new System.Drawing.Point(256, 3); + this.SCR_Box.Name = "SCR_Box"; + this.SCR_Box.Size = new System.Drawing.Size(24, 344); + this.SCR_Box.TabIndex = 1; + this.SCR_Box.Scroll += new System.Windows.Forms.ScrollEventHandler(this.updateScroll); + // + // bpkx30 + // + this.bpkx30.BackColor = System.Drawing.Color.Transparent; + this.bpkx30.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx30.Location = new System.Drawing.Point(207, 126); + this.bpkx30.Name = "bpkx30"; + this.bpkx30.Size = new System.Drawing.Size(42, 32); + this.bpkx30.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx30.TabIndex = 59; + this.bpkx30.TabStop = false; + // + // bpkx29 + // + this.bpkx29.BackColor = System.Drawing.Color.Transparent; + this.bpkx29.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx29.Location = new System.Drawing.Point(166, 126); + this.bpkx29.Name = "bpkx29"; + this.bpkx29.Size = new System.Drawing.Size(42, 32); + this.bpkx29.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx29.TabIndex = 58; + this.bpkx29.TabStop = false; + // + // bpkx28 + // + this.bpkx28.BackColor = System.Drawing.Color.Transparent; + this.bpkx28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx28.Location = new System.Drawing.Point(125, 126); + this.bpkx28.Name = "bpkx28"; + this.bpkx28.Size = new System.Drawing.Size(42, 32); + this.bpkx28.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx28.TabIndex = 57; + this.bpkx28.TabStop = false; + // + // bpkx27 + // + this.bpkx27.BackColor = System.Drawing.Color.Transparent; + this.bpkx27.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx27.Location = new System.Drawing.Point(84, 126); + this.bpkx27.Name = "bpkx27"; + this.bpkx27.Size = new System.Drawing.Size(42, 32); + this.bpkx27.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx27.TabIndex = 56; + this.bpkx27.TabStop = false; + // + // bpkx26 + // + this.bpkx26.BackColor = System.Drawing.Color.Transparent; + this.bpkx26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx26.Location = new System.Drawing.Point(43, 126); + this.bpkx26.Name = "bpkx26"; + this.bpkx26.Size = new System.Drawing.Size(42, 32); + this.bpkx26.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx26.TabIndex = 55; + this.bpkx26.TabStop = false; + // + // bpkx25 + // + this.bpkx25.BackColor = System.Drawing.Color.Transparent; + this.bpkx25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx25.Location = new System.Drawing.Point(2, 126); + this.bpkx25.Name = "bpkx25"; + this.bpkx25.Size = new System.Drawing.Size(42, 32); + this.bpkx25.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx25.TabIndex = 54; + this.bpkx25.TabStop = false; + // + // bpkx24 + // + this.bpkx24.BackColor = System.Drawing.Color.Transparent; + this.bpkx24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx24.Location = new System.Drawing.Point(207, 95); + this.bpkx24.Name = "bpkx24"; + this.bpkx24.Size = new System.Drawing.Size(42, 32); + this.bpkx24.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx24.TabIndex = 53; + this.bpkx24.TabStop = false; + // + // bpkx23 + // + this.bpkx23.BackColor = System.Drawing.Color.Transparent; + this.bpkx23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx23.Location = new System.Drawing.Point(166, 95); + this.bpkx23.Name = "bpkx23"; + this.bpkx23.Size = new System.Drawing.Size(42, 32); + this.bpkx23.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx23.TabIndex = 52; + this.bpkx23.TabStop = false; + // + // bpkx22 + // + this.bpkx22.BackColor = System.Drawing.Color.Transparent; + this.bpkx22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx22.Location = new System.Drawing.Point(125, 95); + this.bpkx22.Name = "bpkx22"; + this.bpkx22.Size = new System.Drawing.Size(42, 32); + this.bpkx22.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx22.TabIndex = 51; + this.bpkx22.TabStop = false; + // + // bpkx21 + // + this.bpkx21.BackColor = System.Drawing.Color.Transparent; + this.bpkx21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx21.Location = new System.Drawing.Point(84, 95); + this.bpkx21.Name = "bpkx21"; + this.bpkx21.Size = new System.Drawing.Size(42, 32); + this.bpkx21.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx21.TabIndex = 50; + this.bpkx21.TabStop = false; + // + // bpkx20 + // + this.bpkx20.BackColor = System.Drawing.Color.Transparent; + this.bpkx20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx20.Location = new System.Drawing.Point(43, 95); + this.bpkx20.Name = "bpkx20"; + this.bpkx20.Size = new System.Drawing.Size(42, 32); + this.bpkx20.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx20.TabIndex = 49; + this.bpkx20.TabStop = false; + // + // bpkx19 + // + this.bpkx19.BackColor = System.Drawing.Color.Transparent; + this.bpkx19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx19.Location = new System.Drawing.Point(2, 95); + this.bpkx19.Name = "bpkx19"; + this.bpkx19.Size = new System.Drawing.Size(42, 32); + this.bpkx19.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx19.TabIndex = 48; + this.bpkx19.TabStop = false; + // + // bpkx18 + // + this.bpkx18.BackColor = System.Drawing.Color.Transparent; + this.bpkx18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx18.Location = new System.Drawing.Point(207, 64); + this.bpkx18.Name = "bpkx18"; + this.bpkx18.Size = new System.Drawing.Size(42, 32); + this.bpkx18.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx18.TabIndex = 47; + this.bpkx18.TabStop = false; + // + // bpkx17 + // + this.bpkx17.BackColor = System.Drawing.Color.Transparent; + this.bpkx17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx17.Location = new System.Drawing.Point(166, 64); + this.bpkx17.Name = "bpkx17"; + this.bpkx17.Size = new System.Drawing.Size(42, 32); + this.bpkx17.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx17.TabIndex = 46; + this.bpkx17.TabStop = false; + // + // bpkx16 + // + this.bpkx16.BackColor = System.Drawing.Color.Transparent; + this.bpkx16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx16.Location = new System.Drawing.Point(125, 64); + this.bpkx16.Name = "bpkx16"; + this.bpkx16.Size = new System.Drawing.Size(42, 32); + this.bpkx16.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx16.TabIndex = 45; + this.bpkx16.TabStop = false; + // + // bpkx15 + // + this.bpkx15.BackColor = System.Drawing.Color.Transparent; + this.bpkx15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx15.Location = new System.Drawing.Point(84, 64); + this.bpkx15.Name = "bpkx15"; + this.bpkx15.Size = new System.Drawing.Size(42, 32); + this.bpkx15.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx15.TabIndex = 44; + this.bpkx15.TabStop = false; + // + // bpkx14 + // + this.bpkx14.BackColor = System.Drawing.Color.Transparent; + this.bpkx14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx14.Location = new System.Drawing.Point(43, 64); + this.bpkx14.Name = "bpkx14"; + this.bpkx14.Size = new System.Drawing.Size(42, 32); + this.bpkx14.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx14.TabIndex = 43; + this.bpkx14.TabStop = false; + // + // bpkx13 + // + this.bpkx13.BackColor = System.Drawing.Color.Transparent; + this.bpkx13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx13.Location = new System.Drawing.Point(2, 64); + this.bpkx13.Name = "bpkx13"; + this.bpkx13.Size = new System.Drawing.Size(42, 32); + this.bpkx13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx13.TabIndex = 42; + this.bpkx13.TabStop = false; + // + // bpkx12 + // + this.bpkx12.BackColor = System.Drawing.Color.Transparent; + this.bpkx12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx12.Location = new System.Drawing.Point(207, 33); + this.bpkx12.Name = "bpkx12"; + this.bpkx12.Size = new System.Drawing.Size(42, 32); + this.bpkx12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx12.TabIndex = 41; + this.bpkx12.TabStop = false; + // + // bpkx11 + // + this.bpkx11.BackColor = System.Drawing.Color.Transparent; + this.bpkx11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx11.Location = new System.Drawing.Point(166, 33); + this.bpkx11.Name = "bpkx11"; + this.bpkx11.Size = new System.Drawing.Size(42, 32); + this.bpkx11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx11.TabIndex = 40; + this.bpkx11.TabStop = false; + // + // bpkx10 + // + this.bpkx10.BackColor = System.Drawing.Color.Transparent; + this.bpkx10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx10.Location = new System.Drawing.Point(125, 33); + this.bpkx10.Name = "bpkx10"; + this.bpkx10.Size = new System.Drawing.Size(42, 32); + this.bpkx10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx10.TabIndex = 39; + this.bpkx10.TabStop = false; + // + // bpkx9 + // + this.bpkx9.BackColor = System.Drawing.Color.Transparent; + this.bpkx9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx9.Location = new System.Drawing.Point(84, 33); + this.bpkx9.Name = "bpkx9"; + this.bpkx9.Size = new System.Drawing.Size(42, 32); + this.bpkx9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx9.TabIndex = 38; + this.bpkx9.TabStop = false; + // + // bpkx8 + // + this.bpkx8.BackColor = System.Drawing.Color.Transparent; + this.bpkx8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx8.Location = new System.Drawing.Point(43, 33); + this.bpkx8.Name = "bpkx8"; + this.bpkx8.Size = new System.Drawing.Size(42, 32); + this.bpkx8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx8.TabIndex = 37; + this.bpkx8.TabStop = false; + // + // bpkx7 + // + this.bpkx7.BackColor = System.Drawing.Color.Transparent; + this.bpkx7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx7.Location = new System.Drawing.Point(2, 33); + this.bpkx7.Name = "bpkx7"; + this.bpkx7.Size = new System.Drawing.Size(42, 32); + this.bpkx7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx7.TabIndex = 36; + this.bpkx7.TabStop = false; + // + // bpkx6 + // + this.bpkx6.BackColor = System.Drawing.Color.Transparent; + this.bpkx6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx6.Location = new System.Drawing.Point(207, 2); + this.bpkx6.Name = "bpkx6"; + this.bpkx6.Size = new System.Drawing.Size(42, 32); + this.bpkx6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx6.TabIndex = 35; + this.bpkx6.TabStop = false; + // + // bpkx5 + // + this.bpkx5.BackColor = System.Drawing.Color.Transparent; + this.bpkx5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx5.Location = new System.Drawing.Point(166, 2); + this.bpkx5.Name = "bpkx5"; + this.bpkx5.Size = new System.Drawing.Size(42, 32); + this.bpkx5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx5.TabIndex = 34; + this.bpkx5.TabStop = false; + // + // bpkx4 + // + this.bpkx4.BackColor = System.Drawing.Color.Transparent; + this.bpkx4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx4.Location = new System.Drawing.Point(125, 2); + this.bpkx4.Name = "bpkx4"; + this.bpkx4.Size = new System.Drawing.Size(42, 32); + this.bpkx4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx4.TabIndex = 33; + this.bpkx4.TabStop = false; + // + // bpkx3 + // + this.bpkx3.BackColor = System.Drawing.Color.Transparent; + this.bpkx3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx3.Location = new System.Drawing.Point(84, 2); + this.bpkx3.Name = "bpkx3"; + this.bpkx3.Size = new System.Drawing.Size(42, 32); + this.bpkx3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx3.TabIndex = 32; + this.bpkx3.TabStop = false; + // + // bpkx2 + // + this.bpkx2.BackColor = System.Drawing.Color.Transparent; + this.bpkx2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx2.Location = new System.Drawing.Point(43, 2); + this.bpkx2.Name = "bpkx2"; + this.bpkx2.Size = new System.Drawing.Size(42, 32); + this.bpkx2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx2.TabIndex = 31; + this.bpkx2.TabStop = false; + // + // bpkx1 + // + this.bpkx1.BackColor = System.Drawing.Color.Transparent; + this.bpkx1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx1.Location = new System.Drawing.Point(2, 2); + this.bpkx1.Name = "bpkx1"; + this.bpkx1.Size = new System.Drawing.Size(42, 32); + this.bpkx1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx1.TabIndex = 30; + this.bpkx1.TabStop = false; + // + // bpkx60 + // + this.bpkx60.BackColor = System.Drawing.Color.Transparent; + this.bpkx60.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx60.Location = new System.Drawing.Point(207, 281); + this.bpkx60.Name = "bpkx60"; + this.bpkx60.Size = new System.Drawing.Size(42, 32); + this.bpkx60.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx60.TabIndex = 59; + this.bpkx60.TabStop = false; + // + // bpkx59 + // + this.bpkx59.BackColor = System.Drawing.Color.Transparent; + this.bpkx59.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx59.Location = new System.Drawing.Point(166, 281); + this.bpkx59.Name = "bpkx59"; + this.bpkx59.Size = new System.Drawing.Size(42, 32); + this.bpkx59.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx59.TabIndex = 58; + this.bpkx59.TabStop = false; + // + // bpkx58 + // + this.bpkx58.BackColor = System.Drawing.Color.Transparent; + this.bpkx58.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx58.Location = new System.Drawing.Point(125, 281); + this.bpkx58.Name = "bpkx58"; + this.bpkx58.Size = new System.Drawing.Size(42, 32); + this.bpkx58.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx58.TabIndex = 57; + this.bpkx58.TabStop = false; + // + // bpkx57 + // + this.bpkx57.BackColor = System.Drawing.Color.Transparent; + this.bpkx57.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx57.Location = new System.Drawing.Point(84, 281); + this.bpkx57.Name = "bpkx57"; + this.bpkx57.Size = new System.Drawing.Size(42, 32); + this.bpkx57.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx57.TabIndex = 56; + this.bpkx57.TabStop = false; + // + // bpkx56 + // + this.bpkx56.BackColor = System.Drawing.Color.Transparent; + this.bpkx56.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx56.Location = new System.Drawing.Point(43, 281); + this.bpkx56.Name = "bpkx56"; + this.bpkx56.Size = new System.Drawing.Size(42, 32); + this.bpkx56.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx56.TabIndex = 55; + this.bpkx56.TabStop = false; + // + // bpkx55 + // + this.bpkx55.BackColor = System.Drawing.Color.Transparent; + this.bpkx55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx55.Location = new System.Drawing.Point(2, 281); + this.bpkx55.Name = "bpkx55"; + this.bpkx55.Size = new System.Drawing.Size(42, 32); + this.bpkx55.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx55.TabIndex = 54; + this.bpkx55.TabStop = false; + // + // bpkx54 + // + this.bpkx54.BackColor = System.Drawing.Color.Transparent; + this.bpkx54.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx54.Location = new System.Drawing.Point(207, 250); + this.bpkx54.Name = "bpkx54"; + this.bpkx54.Size = new System.Drawing.Size(42, 32); + this.bpkx54.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx54.TabIndex = 53; + this.bpkx54.TabStop = false; + // + // bpkx53 + // + this.bpkx53.BackColor = System.Drawing.Color.Transparent; + this.bpkx53.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx53.Location = new System.Drawing.Point(166, 250); + this.bpkx53.Name = "bpkx53"; + this.bpkx53.Size = new System.Drawing.Size(42, 32); + this.bpkx53.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx53.TabIndex = 52; + this.bpkx53.TabStop = false; + // + // bpkx52 + // + this.bpkx52.BackColor = System.Drawing.Color.Transparent; + this.bpkx52.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx52.Location = new System.Drawing.Point(125, 250); + this.bpkx52.Name = "bpkx52"; + this.bpkx52.Size = new System.Drawing.Size(42, 32); + this.bpkx52.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx52.TabIndex = 51; + this.bpkx52.TabStop = false; + // + // bpkx51 + // + this.bpkx51.BackColor = System.Drawing.Color.Transparent; + this.bpkx51.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx51.Location = new System.Drawing.Point(84, 250); + this.bpkx51.Name = "bpkx51"; + this.bpkx51.Size = new System.Drawing.Size(42, 32); + this.bpkx51.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx51.TabIndex = 50; + this.bpkx51.TabStop = false; + // + // bpkx50 + // + this.bpkx50.BackColor = System.Drawing.Color.Transparent; + this.bpkx50.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx50.Location = new System.Drawing.Point(43, 250); + this.bpkx50.Name = "bpkx50"; + this.bpkx50.Size = new System.Drawing.Size(42, 32); + this.bpkx50.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx50.TabIndex = 49; + this.bpkx50.TabStop = false; + // + // bpkx49 + // + this.bpkx49.BackColor = System.Drawing.Color.Transparent; + this.bpkx49.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx49.Location = new System.Drawing.Point(2, 250); + this.bpkx49.Name = "bpkx49"; + this.bpkx49.Size = new System.Drawing.Size(42, 32); + this.bpkx49.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx49.TabIndex = 48; + this.bpkx49.TabStop = false; + // + // bpkx48 + // + this.bpkx48.BackColor = System.Drawing.Color.Transparent; + this.bpkx48.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx48.Location = new System.Drawing.Point(207, 219); + this.bpkx48.Name = "bpkx48"; + this.bpkx48.Size = new System.Drawing.Size(42, 32); + this.bpkx48.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx48.TabIndex = 47; + this.bpkx48.TabStop = false; + // + // bpkx47 + // + this.bpkx47.BackColor = System.Drawing.Color.Transparent; + this.bpkx47.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx47.Location = new System.Drawing.Point(166, 219); + this.bpkx47.Name = "bpkx47"; + this.bpkx47.Size = new System.Drawing.Size(42, 32); + this.bpkx47.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx47.TabIndex = 46; + this.bpkx47.TabStop = false; + // + // bpkx46 + // + this.bpkx46.BackColor = System.Drawing.Color.Transparent; + this.bpkx46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx46.Location = new System.Drawing.Point(125, 219); + this.bpkx46.Name = "bpkx46"; + this.bpkx46.Size = new System.Drawing.Size(42, 32); + this.bpkx46.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx46.TabIndex = 45; + this.bpkx46.TabStop = false; + // + // bpkx45 + // + this.bpkx45.BackColor = System.Drawing.Color.Transparent; + this.bpkx45.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx45.Location = new System.Drawing.Point(84, 219); + this.bpkx45.Name = "bpkx45"; + this.bpkx45.Size = new System.Drawing.Size(42, 32); + this.bpkx45.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx45.TabIndex = 44; + this.bpkx45.TabStop = false; + // + // bpkx44 + // + this.bpkx44.BackColor = System.Drawing.Color.Transparent; + this.bpkx44.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx44.Location = new System.Drawing.Point(43, 219); + this.bpkx44.Name = "bpkx44"; + this.bpkx44.Size = new System.Drawing.Size(42, 32); + this.bpkx44.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx44.TabIndex = 43; + this.bpkx44.TabStop = false; + // + // bpkx43 + // + this.bpkx43.BackColor = System.Drawing.Color.Transparent; + this.bpkx43.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx43.Location = new System.Drawing.Point(2, 219); + this.bpkx43.Name = "bpkx43"; + this.bpkx43.Size = new System.Drawing.Size(42, 32); + this.bpkx43.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx43.TabIndex = 42; + this.bpkx43.TabStop = false; + // + // bpkx42 + // + this.bpkx42.BackColor = System.Drawing.Color.Transparent; + this.bpkx42.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx42.Location = new System.Drawing.Point(207, 188); + this.bpkx42.Name = "bpkx42"; + this.bpkx42.Size = new System.Drawing.Size(42, 32); + this.bpkx42.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx42.TabIndex = 41; + this.bpkx42.TabStop = false; + // + // bpkx41 + // + this.bpkx41.BackColor = System.Drawing.Color.Transparent; + this.bpkx41.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx41.Location = new System.Drawing.Point(166, 188); + this.bpkx41.Name = "bpkx41"; + this.bpkx41.Size = new System.Drawing.Size(42, 32); + this.bpkx41.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx41.TabIndex = 40; + this.bpkx41.TabStop = false; + // + // bpkx40 + // + this.bpkx40.BackColor = System.Drawing.Color.Transparent; + this.bpkx40.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx40.Location = new System.Drawing.Point(125, 188); + this.bpkx40.Name = "bpkx40"; + this.bpkx40.Size = new System.Drawing.Size(42, 32); + this.bpkx40.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx40.TabIndex = 39; + this.bpkx40.TabStop = false; + // + // bpkx39 + // + this.bpkx39.BackColor = System.Drawing.Color.Transparent; + this.bpkx39.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx39.Location = new System.Drawing.Point(84, 188); + this.bpkx39.Name = "bpkx39"; + this.bpkx39.Size = new System.Drawing.Size(42, 32); + this.bpkx39.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx39.TabIndex = 38; + this.bpkx39.TabStop = false; + // + // bpkx38 + // + this.bpkx38.BackColor = System.Drawing.Color.Transparent; + this.bpkx38.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx38.Location = new System.Drawing.Point(43, 188); + this.bpkx38.Name = "bpkx38"; + this.bpkx38.Size = new System.Drawing.Size(42, 32); + this.bpkx38.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx38.TabIndex = 37; + this.bpkx38.TabStop = false; + // + // bpkx37 + // + this.bpkx37.BackColor = System.Drawing.Color.Transparent; + this.bpkx37.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx37.Location = new System.Drawing.Point(2, 188); + this.bpkx37.Name = "bpkx37"; + this.bpkx37.Size = new System.Drawing.Size(42, 32); + this.bpkx37.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx37.TabIndex = 36; + this.bpkx37.TabStop = false; + // + // bpkx36 + // + this.bpkx36.BackColor = System.Drawing.Color.Transparent; + this.bpkx36.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx36.Location = new System.Drawing.Point(207, 157); + this.bpkx36.Name = "bpkx36"; + this.bpkx36.Size = new System.Drawing.Size(42, 32); + this.bpkx36.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx36.TabIndex = 35; + this.bpkx36.TabStop = false; + // + // bpkx35 + // + this.bpkx35.BackColor = System.Drawing.Color.Transparent; + this.bpkx35.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx35.Location = new System.Drawing.Point(166, 157); + this.bpkx35.Name = "bpkx35"; + this.bpkx35.Size = new System.Drawing.Size(42, 32); + this.bpkx35.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx35.TabIndex = 34; + this.bpkx35.TabStop = false; + // + // bpkx34 + // + this.bpkx34.BackColor = System.Drawing.Color.Transparent; + this.bpkx34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx34.Location = new System.Drawing.Point(125, 157); + this.bpkx34.Name = "bpkx34"; + this.bpkx34.Size = new System.Drawing.Size(42, 32); + this.bpkx34.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx34.TabIndex = 33; + this.bpkx34.TabStop = false; + // + // bpkx33 + // + this.bpkx33.BackColor = System.Drawing.Color.Transparent; + this.bpkx33.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx33.Location = new System.Drawing.Point(84, 157); + this.bpkx33.Name = "bpkx33"; + this.bpkx33.Size = new System.Drawing.Size(42, 32); + this.bpkx33.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx33.TabIndex = 32; + this.bpkx33.TabStop = false; + // + // bpkx32 + // + this.bpkx32.BackColor = System.Drawing.Color.Transparent; + this.bpkx32.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx32.Location = new System.Drawing.Point(43, 157); + this.bpkx32.Name = "bpkx32"; + this.bpkx32.Size = new System.Drawing.Size(42, 32); + this.bpkx32.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx32.TabIndex = 31; + this.bpkx32.TabStop = false; + // + // bpkx31 + // + this.bpkx31.BackColor = System.Drawing.Color.Transparent; + this.bpkx31.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx31.Location = new System.Drawing.Point(2, 157); + this.bpkx31.Name = "bpkx31"; + this.bpkx31.Size = new System.Drawing.Size(42, 32); + this.bpkx31.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx31.TabIndex = 30; + this.bpkx31.TabStop = false; + // + // menuStrip1 + // + this.menuStrip1.BackColor = System.Drawing.Color.Transparent; + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.Menu_Close, + this.Menu_Tools}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(544, 24); + this.menuStrip1.TabIndex = 65; + this.menuStrip1.Text = "menuStrip1"; + // + // Menu_Close + // + this.Menu_Close.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.Menu_Exit}); + this.Menu_Close.Name = "Menu_Close"; + this.Menu_Close.Size = new System.Drawing.Size(37, 20); + this.Menu_Close.Text = "File"; + // + // Menu_Exit + // + this.Menu_Exit.Image = global::PKHeX.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.E))); + this.Menu_Exit.ShowShortcutKeys = false; + this.Menu_Exit.Size = new System.Drawing.Size(96, 22); + this.Menu_Exit.Text = "&Close"; + this.Menu_Exit.Click += new System.EventHandler(this.Menu_Exit_Click); + // + // Menu_Tools + // + this.Menu_Tools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.Menu_SearchSettings, + this.Menu_OpenDB, + this.Menu_Export}); + this.Menu_Tools.Name = "Menu_Tools"; + this.Menu_Tools.Size = new System.Drawing.Size(47, 20); + this.Menu_Tools.Text = "Tools"; + // + // Menu_SearchSettings + // + this.Menu_SearchSettings.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.Menu_SearchBoxes, + this.Menu_SearchDatabase, + this.Menu_SearchLegal, + this.Menu_SearchIllegal, + this.Menu_SearchAdvanced}); + this.Menu_SearchSettings.Image = global::PKHeX.Properties.Resources.settings; + this.Menu_SearchSettings.Name = "Menu_SearchSettings"; + this.Menu_SearchSettings.Size = new System.Drawing.Size(197, 22); + this.Menu_SearchSettings.Text = "Search Settings"; + // + // Menu_SearchBoxes + // + this.Menu_SearchBoxes.Checked = true; + this.Menu_SearchBoxes.CheckOnClick = true; + this.Menu_SearchBoxes.CheckState = System.Windows.Forms.CheckState.Checked; + this.Menu_SearchBoxes.Name = "Menu_SearchBoxes"; + this.Menu_SearchBoxes.Size = new System.Drawing.Size(207, 22); + this.Menu_SearchBoxes.Text = "Search Within Boxes"; + // + // Menu_SearchDatabase + // + this.Menu_SearchDatabase.Checked = true; + this.Menu_SearchDatabase.CheckOnClick = true; + this.Menu_SearchDatabase.CheckState = System.Windows.Forms.CheckState.Checked; + this.Menu_SearchDatabase.Name = "Menu_SearchDatabase"; + this.Menu_SearchDatabase.Size = new System.Drawing.Size(207, 22); + this.Menu_SearchDatabase.Text = "Search Within Database"; + // + // Menu_SearchLegal + // + this.Menu_SearchLegal.Checked = true; + this.Menu_SearchLegal.CheckOnClick = true; + this.Menu_SearchLegal.CheckState = System.Windows.Forms.CheckState.Checked; + this.Menu_SearchLegal.Name = "Menu_SearchLegal"; + this.Menu_SearchLegal.Size = new System.Drawing.Size(207, 22); + this.Menu_SearchLegal.Text = "Show Legal"; + // + // Menu_SearchIllegal + // + this.Menu_SearchIllegal.Checked = true; + this.Menu_SearchIllegal.CheckOnClick = true; + this.Menu_SearchIllegal.CheckState = System.Windows.Forms.CheckState.Checked; + this.Menu_SearchIllegal.Name = "Menu_SearchIllegal"; + this.Menu_SearchIllegal.Size = new System.Drawing.Size(207, 22); + this.Menu_SearchIllegal.Text = "Show Illegal"; + // + // Menu_SearchAdvanced + // + this.Menu_SearchAdvanced.CheckOnClick = true; + this.Menu_SearchAdvanced.Name = "Menu_SearchAdvanced"; + this.Menu_SearchAdvanced.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); + this.Menu_SearchAdvanced.Size = new System.Drawing.Size(207, 22); + this.Menu_SearchAdvanced.Text = "Advanced Search"; + this.Menu_SearchAdvanced.Click += new System.EventHandler(this.Menu_SearchAdvanced_Click); + // + // Menu_OpenDB + // + this.Menu_OpenDB.Image = global::PKHeX.Properties.Resources.folder; + this.Menu_OpenDB.Name = "Menu_OpenDB"; + this.Menu_OpenDB.Size = new System.Drawing.Size(197, 22); + this.Menu_OpenDB.Text = "Open Database Folder"; + this.Menu_OpenDB.Click += new System.EventHandler(this.openDB); + // + // Menu_Export + // + this.Menu_Export.Image = global::PKHeX.Properties.Resources.export; + this.Menu_Export.Name = "Menu_Export"; + this.Menu_Export.Size = new System.Drawing.Size(197, 22); + this.Menu_Export.Text = "Export Results to Folder"; + this.Menu_Export.Click += new System.EventHandler(this.Menu_Export_Click); + // + // P_Results + // + this.P_Results.BackColor = System.Drawing.SystemColors.ButtonHighlight; + this.P_Results.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.P_Results.Controls.Add(this.PAN_Box); + this.P_Results.Controls.Add(this.SCR_Box); + this.P_Results.Location = new System.Drawing.Point(12, 27); + this.P_Results.Name = "P_Results"; + this.P_Results.Size = new System.Drawing.Size(285, 352); + this.P_Results.TabIndex = 66; + // + // PAN_Box + // + this.PAN_Box.BackgroundImage = global::PKHeX.Properties.Resources.box_wp16xy; + this.PAN_Box.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.PAN_Box.Controls.Add(this.bpkx66); + this.PAN_Box.Controls.Add(this.bpkx65); + this.PAN_Box.Controls.Add(this.bpkx64); + this.PAN_Box.Controls.Add(this.bpkx63); + this.PAN_Box.Controls.Add(this.bpkx62); + this.PAN_Box.Controls.Add(this.bpkx61); + this.PAN_Box.Controls.Add(this.bpkx30); + this.PAN_Box.Controls.Add(this.bpkx1); + this.PAN_Box.Controls.Add(this.bpkx60); + this.PAN_Box.Controls.Add(this.bpkx31); + this.PAN_Box.Controls.Add(this.bpkx29); + this.PAN_Box.Controls.Add(this.bpkx32); + this.PAN_Box.Controls.Add(this.bpkx33); + this.PAN_Box.Controls.Add(this.bpkx28); + this.PAN_Box.Controls.Add(this.bpkx34); + this.PAN_Box.Controls.Add(this.bpkx59); + this.PAN_Box.Controls.Add(this.bpkx35); + this.PAN_Box.Controls.Add(this.bpkx27); + this.PAN_Box.Controls.Add(this.bpkx36); + this.PAN_Box.Controls.Add(this.bpkx37); + this.PAN_Box.Controls.Add(this.bpkx26); + this.PAN_Box.Controls.Add(this.bpkx38); + this.PAN_Box.Controls.Add(this.bpkx58); + this.PAN_Box.Controls.Add(this.bpkx39); + this.PAN_Box.Controls.Add(this.bpkx25); + this.PAN_Box.Controls.Add(this.bpkx40); + this.PAN_Box.Controls.Add(this.bpkx41); + this.PAN_Box.Controls.Add(this.bpkx24); + this.PAN_Box.Controls.Add(this.bpkx42); + this.PAN_Box.Controls.Add(this.bpkx57); + this.PAN_Box.Controls.Add(this.bpkx43); + this.PAN_Box.Controls.Add(this.bpkx23); + this.PAN_Box.Controls.Add(this.bpkx44); + this.PAN_Box.Controls.Add(this.bpkx22); + this.PAN_Box.Controls.Add(this.bpkx45); + this.PAN_Box.Controls.Add(this.bpkx46); + this.PAN_Box.Controls.Add(this.bpkx21); + this.PAN_Box.Controls.Add(this.bpkx2); + this.PAN_Box.Controls.Add(this.bpkx56); + this.PAN_Box.Controls.Add(this.bpkx47); + this.PAN_Box.Controls.Add(this.bpkx20); + this.PAN_Box.Controls.Add(this.bpkx3); + this.PAN_Box.Controls.Add(this.bpkx4); + this.PAN_Box.Controls.Add(this.bpkx19); + this.PAN_Box.Controls.Add(this.bpkx48); + this.PAN_Box.Controls.Add(this.bpkx55); + this.PAN_Box.Controls.Add(this.bpkx5); + this.PAN_Box.Controls.Add(this.bpkx18); + this.PAN_Box.Controls.Add(this.bpkx6); + this.PAN_Box.Controls.Add(this.bpkx49); + this.PAN_Box.Controls.Add(this.bpkx17); + this.PAN_Box.Controls.Add(this.bpkx7); + this.PAN_Box.Controls.Add(this.bpkx54); + this.PAN_Box.Controls.Add(this.bpkx8); + this.PAN_Box.Controls.Add(this.bpkx16); + this.PAN_Box.Controls.Add(this.bpkx50); + this.PAN_Box.Controls.Add(this.bpkx9); + this.PAN_Box.Controls.Add(this.bpkx15); + this.PAN_Box.Controls.Add(this.bpkx10); + this.PAN_Box.Controls.Add(this.bpkx53); + this.PAN_Box.Controls.Add(this.bpkx51); + this.PAN_Box.Controls.Add(this.bpkx14); + this.PAN_Box.Controls.Add(this.bpkx11); + this.PAN_Box.Controls.Add(this.bpkx12); + this.PAN_Box.Controls.Add(this.bpkx13); + this.PAN_Box.Controls.Add(this.bpkx52); + this.PAN_Box.Location = new System.Drawing.Point(3, 3); + this.PAN_Box.Name = "PAN_Box"; + this.PAN_Box.Size = new System.Drawing.Size(251, 346); + this.PAN_Box.TabIndex = 63; + // + // bpkx66 + // + this.bpkx66.BackColor = System.Drawing.Color.Transparent; + this.bpkx66.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx66.Location = new System.Drawing.Point(207, 312); + this.bpkx66.Name = "bpkx66"; + this.bpkx66.Size = new System.Drawing.Size(42, 32); + this.bpkx66.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx66.TabIndex = 65; + this.bpkx66.TabStop = false; + // + // bpkx65 + // + this.bpkx65.BackColor = System.Drawing.Color.Transparent; + this.bpkx65.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx65.Location = new System.Drawing.Point(166, 312); + this.bpkx65.Name = "bpkx65"; + this.bpkx65.Size = new System.Drawing.Size(42, 32); + this.bpkx65.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx65.TabIndex = 64; + this.bpkx65.TabStop = false; + // + // bpkx64 + // + this.bpkx64.BackColor = System.Drawing.Color.Transparent; + this.bpkx64.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx64.Location = new System.Drawing.Point(125, 312); + this.bpkx64.Name = "bpkx64"; + this.bpkx64.Size = new System.Drawing.Size(42, 32); + this.bpkx64.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx64.TabIndex = 63; + this.bpkx64.TabStop = false; + // + // bpkx63 + // + this.bpkx63.BackColor = System.Drawing.Color.Transparent; + this.bpkx63.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx63.Location = new System.Drawing.Point(84, 312); + this.bpkx63.Name = "bpkx63"; + this.bpkx63.Size = new System.Drawing.Size(42, 32); + this.bpkx63.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx63.TabIndex = 62; + this.bpkx63.TabStop = false; + // + // bpkx62 + // + this.bpkx62.BackColor = System.Drawing.Color.Transparent; + this.bpkx62.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx62.Location = new System.Drawing.Point(43, 312); + this.bpkx62.Name = "bpkx62"; + this.bpkx62.Size = new System.Drawing.Size(42, 32); + this.bpkx62.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx62.TabIndex = 61; + this.bpkx62.TabStop = false; + // + // bpkx61 + // + this.bpkx61.BackColor = System.Drawing.Color.Transparent; + this.bpkx61.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx61.Location = new System.Drawing.Point(2, 312); + this.bpkx61.Name = "bpkx61"; + this.bpkx61.Size = new System.Drawing.Size(42, 32); + this.bpkx61.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx61.TabIndex = 60; + this.bpkx61.TabStop = false; + // + // CB_HeldItem + // + this.CB_HeldItem.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_HeldItem.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_HeldItem.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_HeldItem.FormattingEnabled = true; + this.CB_HeldItem.Location = new System.Drawing.Point(61, 38); + this.CB_HeldItem.Margin = new System.Windows.Forms.Padding(0); + this.CB_HeldItem.Name = "CB_HeldItem"; + this.CB_HeldItem.Size = new System.Drawing.Size(122, 21); + this.CB_HeldItem.TabIndex = 69; + // + // CB_Species + // + this.CB_Species.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Species.FormattingEnabled = true; + this.CB_Species.Location = new System.Drawing.Point(61, 17); + this.CB_Species.Margin = new System.Windows.Forms.Padding(0); + this.CB_Species.Name = "CB_Species"; + this.CB_Species.Size = new System.Drawing.Size(122, 21); + this.CB_Species.TabIndex = 67; + // + // CB_Move4 + // + this.CB_Move4.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Move4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move4.FormattingEnabled = true; + this.CB_Move4.Location = new System.Drawing.Point(61, 122); + this.CB_Move4.Margin = new System.Windows.Forms.Padding(0); + this.CB_Move4.Name = "CB_Move4"; + this.CB_Move4.Size = new System.Drawing.Size(122, 21); + this.CB_Move4.TabIndex = 74; + // + // CB_Move3 + // + this.CB_Move3.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Move3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move3.FormattingEnabled = true; + this.CB_Move3.Location = new System.Drawing.Point(61, 101); + this.CB_Move3.Margin = new System.Windows.Forms.Padding(0); + this.CB_Move3.Name = "CB_Move3"; + this.CB_Move3.Size = new System.Drawing.Size(122, 21); + this.CB_Move3.TabIndex = 73; + // + // CB_Move2 + // + this.CB_Move2.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Move2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move2.FormattingEnabled = true; + this.CB_Move2.Location = new System.Drawing.Point(61, 80); + this.CB_Move2.Margin = new System.Windows.Forms.Padding(0); + this.CB_Move2.Name = "CB_Move2"; + this.CB_Move2.Size = new System.Drawing.Size(122, 21); + this.CB_Move2.TabIndex = 72; + // + // CB_Move1 + // + this.CB_Move1.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Move1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move1.FormattingEnabled = true; + this.CB_Move1.Location = new System.Drawing.Point(61, 59); + this.CB_Move1.Margin = new System.Windows.Forms.Padding(0); + this.CB_Move1.Name = "CB_Move1"; + this.CB_Move1.Size = new System.Drawing.Size(122, 21); + this.CB_Move1.TabIndex = 71; + // + // Label_HeldItem + // + this.Label_HeldItem.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.Label_HeldItem.AutoSize = true; + this.Label_HeldItem.Location = new System.Drawing.Point(3, 42); + this.Label_HeldItem.Margin = new System.Windows.Forms.Padding(3); + this.Label_HeldItem.Name = "Label_HeldItem"; + this.Label_HeldItem.Size = new System.Drawing.Size(55, 13); + this.Label_HeldItem.TabIndex = 93; + this.Label_HeldItem.Text = "Held Item:"; + this.Label_HeldItem.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // Label_Species + // + this.Label_Species.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.Label_Species.AutoSize = true; + this.Label_Species.Location = new System.Drawing.Point(10, 21); + this.Label_Species.Margin = new System.Windows.Forms.Padding(3); + this.Label_Species.Name = "Label_Species"; + this.Label_Species.Size = new System.Drawing.Size(48, 13); + this.Label_Species.TabIndex = 90; + this.Label_Species.Text = "Species:"; + this.Label_Species.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // B_Search + // + this.B_Search.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.B_Search.Location = new System.Drawing.Point(317, 350); + this.B_Search.Name = "B_Search"; + this.B_Search.Size = new System.Drawing.Size(206, 30); + this.B_Search.TabIndex = 102; + this.B_Search.Text = "Search!"; + this.B_Search.UseVisualStyleBackColor = true; + this.B_Search.Click += new System.EventHandler(this.B_Search_Click); + // + // L_Move1 + // + this.L_Move1.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.L_Move1.AutoSize = true; + this.L_Move1.Location = new System.Drawing.Point(12, 63); + this.L_Move1.Margin = new System.Windows.Forms.Padding(3); + this.L_Move1.Name = "L_Move1"; + this.L_Move1.Size = new System.Drawing.Size(46, 13); + this.L_Move1.TabIndex = 105; + this.L_Move1.Text = "Move 1:"; + this.L_Move1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Move2 + // + this.L_Move2.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.L_Move2.AutoSize = true; + this.L_Move2.Location = new System.Drawing.Point(12, 84); + this.L_Move2.Margin = new System.Windows.Forms.Padding(3); + this.L_Move2.Name = "L_Move2"; + this.L_Move2.Size = new System.Drawing.Size(46, 13); + this.L_Move2.TabIndex = 106; + this.L_Move2.Text = "Move 2:"; + this.L_Move2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Move3 + // + this.L_Move3.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.L_Move3.AutoSize = true; + this.L_Move3.Location = new System.Drawing.Point(12, 105); + this.L_Move3.Margin = new System.Windows.Forms.Padding(3); + this.L_Move3.Name = "L_Move3"; + this.L_Move3.Size = new System.Drawing.Size(46, 13); + this.L_Move3.TabIndex = 107; + this.L_Move3.Text = "Move 3:"; + this.L_Move3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Move4 + // + this.L_Move4.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.L_Move4.AutoSize = true; + this.L_Move4.Location = new System.Drawing.Point(12, 126); + this.L_Move4.Margin = new System.Windows.Forms.Padding(3); + this.L_Move4.Name = "L_Move4"; + this.L_Move4.Size = new System.Drawing.Size(46, 13); + this.L_Move4.TabIndex = 108; + this.L_Move4.Text = "Move 4:"; + this.L_Move4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // B_Reset + // + this.B_Reset.Location = new System.Drawing.Point(223, 3); + this.B_Reset.Name = "B_Reset"; + this.B_Reset.Size = new System.Drawing.Size(75, 23); + this.B_Reset.TabIndex = 111; + this.B_Reset.Text = "Reset Filters"; + this.B_Reset.UseVisualStyleBackColor = true; + this.B_Reset.Click += new System.EventHandler(this.resetFilters); + // + // L_Count + // + this.L_Count.Location = new System.Drawing.Point(99, 11); + this.L_Count.Name = "L_Count"; + this.L_Count.Size = new System.Drawing.Size(83, 13); + this.L_Count.TabIndex = 114; + this.L_Count.Text = "Count: {0}"; + this.L_Count.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // L_Viewed + // + this.L_Viewed.AutoSize = true; + this.L_Viewed.Location = new System.Drawing.Point(9, 381); + this.L_Viewed.Name = "L_Viewed"; + this.L_Viewed.Size = new System.Drawing.Size(85, 13); + this.L_Viewed.TabIndex = 117; + this.L_Viewed.Text = "Last Viewed: {0}"; + this.L_Viewed.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // FLP_Egg + // + this.FLP_Egg.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.FLP_Egg.AutoSize = true; + this.FLP_Egg.Controls.Add(this.CHK_IsEgg); + this.FLP_Egg.Location = new System.Drawing.Point(61, 0); + this.FLP_Egg.Margin = new System.Windows.Forms.Padding(0); + this.FLP_Egg.Name = "FLP_Egg"; + this.FLP_Egg.Size = new System.Drawing.Size(45, 17); + this.FLP_Egg.TabIndex = 120; + // + // CHK_IsEgg + // + this.CHK_IsEgg.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CHK_IsEgg.AutoSize = true; + this.CHK_IsEgg.Checked = true; + this.CHK_IsEgg.CheckState = System.Windows.Forms.CheckState.Indeterminate; + this.CHK_IsEgg.Location = new System.Drawing.Point(0, 0); + this.CHK_IsEgg.Margin = new System.Windows.Forms.Padding(0); + this.CHK_IsEgg.Name = "CHK_IsEgg"; + this.CHK_IsEgg.Size = new System.Drawing.Size(45, 17); + this.CHK_IsEgg.TabIndex = 98; + this.CHK_IsEgg.Text = "Egg"; + this.CHK_IsEgg.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.CHK_IsEgg.ThreeState = true; + this.CHK_IsEgg.UseVisualStyleBackColor = true; + // + // CHK_Shiny + // + this.CHK_Shiny.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.CHK_Shiny.AutoSize = true; + this.CHK_Shiny.Checked = true; + this.CHK_Shiny.CheckState = System.Windows.Forms.CheckState.Indeterminate; + this.CHK_Shiny.Location = new System.Drawing.Point(9, 0); + this.CHK_Shiny.Margin = new System.Windows.Forms.Padding(0); + this.CHK_Shiny.Name = "CHK_Shiny"; + this.CHK_Shiny.Size = new System.Drawing.Size(52, 17); + this.CHK_Shiny.TabIndex = 99; + this.CHK_Shiny.Text = "Shiny"; + this.CHK_Shiny.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.CHK_Shiny.ThreeState = true; + this.CHK_Shiny.UseVisualStyleBackColor = true; + // + // TLP_Filters + // + this.TLP_Filters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.TLP_Filters.AutoScroll = true; + this.TLP_Filters.AutoScrollMargin = new System.Drawing.Size(3, 3); + this.TLP_Filters.AutoSize = true; + this.TLP_Filters.ColumnCount = 2; + this.TLP_Filters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.TLP_Filters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.TLP_Filters.Controls.Add(this.FLP_Format, 1, 15); + this.TLP_Filters.Controls.Add(this.L_Format, 0, 15); + this.TLP_Filters.Controls.Add(this.FLP_Egg, 1, 0); + this.TLP_Filters.Controls.Add(this.CHK_Shiny, 0, 0); + this.TLP_Filters.Controls.Add(this.Label_Species, 0, 1); + this.TLP_Filters.Controls.Add(this.CB_Species, 1, 1); + this.TLP_Filters.Controls.Add(this.Label_HeldItem, 0, 3); + this.TLP_Filters.Controls.Add(this.CB_HeldItem, 1, 3); + this.TLP_Filters.Controls.Add(this.FLP_Level, 1, 5); + this.TLP_Filters.Controls.Add(this.L_Move1, 0, 9); + this.TLP_Filters.Controls.Add(this.CB_Move1, 1, 9); + this.TLP_Filters.Controls.Add(this.L_Move2, 0, 10); + this.TLP_Filters.Controls.Add(this.CB_Move2, 1, 10); + this.TLP_Filters.Controls.Add(this.L_Move3, 0, 11); + this.TLP_Filters.Controls.Add(this.CB_Move3, 1, 11); + this.TLP_Filters.Controls.Add(this.L_Move4, 0, 12); + this.TLP_Filters.Controls.Add(this.CB_Move4, 1, 12); + this.TLP_Filters.Location = new System.Drawing.Point(304, 11); + this.TLP_Filters.Name = "TLP_Filters"; + this.TLP_Filters.RowCount = 17; + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.TLP_Filters.Size = new System.Drawing.Size(228, 354); + this.TLP_Filters.TabIndex = 118; + // + // FLP_Format + // + this.FLP_Format.AutoSize = true; + this.FLP_Format.Controls.Add(this.CB_FormatComparator); + this.FLP_Format.Controls.Add(this.CB_Format); + this.FLP_Format.Location = new System.Drawing.Point(61, 143); + this.FLP_Format.Margin = new System.Windows.Forms.Padding(0); + this.FLP_Format.Name = "FLP_Format"; + this.FLP_Format.Size = new System.Drawing.Size(122, 21); + this.FLP_Format.TabIndex = 124; + // + // CB_FormatComparator + // + this.CB_FormatComparator.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_FormatComparator.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_FormatComparator.FormattingEnabled = true; + this.CB_FormatComparator.Items.AddRange(new object[] { + "Any", + ">=", + "==", + "<="}); + this.CB_FormatComparator.Location = new System.Drawing.Point(0, 0); + this.CB_FormatComparator.Margin = new System.Windows.Forms.Padding(0); + this.CB_FormatComparator.Name = "CB_FormatComparator"; + this.CB_FormatComparator.Size = new System.Drawing.Size(54, 21); + this.CB_FormatComparator.TabIndex = 122; + this.CB_FormatComparator.SelectedIndexChanged += new System.EventHandler(this.changeFormatFilter); + // + // CB_Format + // + this.CB_Format.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.CB_Format.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Format.FormattingEnabled = true; + this.CB_Format.Items.AddRange(new object[] { + "Any", + ".wc6", + ".pgf", + ".pcd/pgt"}); + this.CB_Format.Location = new System.Drawing.Point(54, 0); + this.CB_Format.Margin = new System.Windows.Forms.Padding(0); + this.CB_Format.Name = "CB_Format"; + this.CB_Format.Size = new System.Drawing.Size(68, 21); + this.CB_Format.TabIndex = 121; + this.CB_Format.Visible = false; + // + // L_Format + // + this.L_Format.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.L_Format.AutoSize = true; + this.L_Format.Location = new System.Drawing.Point(16, 147); + this.L_Format.Margin = new System.Windows.Forms.Padding(3); + this.L_Format.Name = "L_Format"; + this.L_Format.Size = new System.Drawing.Size(42, 13); + this.L_Format.TabIndex = 122; + this.L_Format.Text = "Format:"; + this.L_Format.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // FLP_Level + // + this.FLP_Level.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.FLP_Level.AutoSize = true; + this.FLP_Level.Location = new System.Drawing.Point(61, 59); + this.FLP_Level.Margin = new System.Windows.Forms.Padding(0); + this.FLP_Level.Name = "FLP_Level"; + this.FLP_Level.Size = new System.Drawing.Size(0, 0); + this.FLP_Level.TabIndex = 119; + // + // RTB_Instructions + // + this.RTB_Instructions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.RTB_Instructions.Location = new System.Drawing.Point(63, 27); + this.RTB_Instructions.Name = "RTB_Instructions"; + this.RTB_Instructions.Size = new System.Drawing.Size(235, 352); + this.RTB_Instructions.TabIndex = 119; + this.RTB_Instructions.Text = ""; + // + // SAV_MysteryGiftDB + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(544, 396); + this.Controls.Add(this.B_Search); + this.Controls.Add(this.TLP_Filters); + this.Controls.Add(this.L_Viewed); + this.Controls.Add(this.L_Count); + this.Controls.Add(this.B_Reset); + this.Controls.Add(this.P_Results); + this.Controls.Add(this.menuStrip1); + this.Controls.Add(this.RTB_Instructions); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(800, 435); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(560, 435); + this.Name = "SAV_MysteryGiftDB"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Database"; + ((System.ComponentModel.ISupportInitialize)(this.bpkx30)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx29)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx28)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx27)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx26)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx25)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx24)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx23)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx22)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx21)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx20)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx60)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx59)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx58)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx57)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx56)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx55)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx54)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx53)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx52)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx51)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx50)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx49)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx48)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx47)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx46)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx45)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx44)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx43)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx42)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx41)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx40)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx39)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx38)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx37)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx36)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx35)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx34)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx33)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx32)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx31)).EndInit(); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.P_Results.ResumeLayout(false); + this.PAN_Box.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bpkx66)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx65)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx64)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx63)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx62)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx61)).EndInit(); + this.FLP_Egg.ResumeLayout(false); + this.FLP_Egg.PerformLayout(); + this.TLP_Filters.ResumeLayout(false); + this.TLP_Filters.PerformLayout(); + this.FLP_Format.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.VScrollBar SCR_Box; + private System.Windows.Forms.PictureBox bpkx30; + private System.Windows.Forms.PictureBox bpkx29; + private System.Windows.Forms.PictureBox bpkx28; + private System.Windows.Forms.PictureBox bpkx27; + private System.Windows.Forms.PictureBox bpkx26; + private System.Windows.Forms.PictureBox bpkx25; + private System.Windows.Forms.PictureBox bpkx24; + private System.Windows.Forms.PictureBox bpkx23; + private System.Windows.Forms.PictureBox bpkx22; + private System.Windows.Forms.PictureBox bpkx21; + private System.Windows.Forms.PictureBox bpkx20; + private System.Windows.Forms.PictureBox bpkx19; + private System.Windows.Forms.PictureBox bpkx18; + private System.Windows.Forms.PictureBox bpkx17; + private System.Windows.Forms.PictureBox bpkx16; + private System.Windows.Forms.PictureBox bpkx15; + private System.Windows.Forms.PictureBox bpkx14; + private System.Windows.Forms.PictureBox bpkx13; + private System.Windows.Forms.PictureBox bpkx12; + private System.Windows.Forms.PictureBox bpkx11; + private System.Windows.Forms.PictureBox bpkx10; + private System.Windows.Forms.PictureBox bpkx9; + private System.Windows.Forms.PictureBox bpkx8; + private System.Windows.Forms.PictureBox bpkx7; + private System.Windows.Forms.PictureBox bpkx6; + private System.Windows.Forms.PictureBox bpkx5; + private System.Windows.Forms.PictureBox bpkx4; + private System.Windows.Forms.PictureBox bpkx3; + private System.Windows.Forms.PictureBox bpkx2; + private System.Windows.Forms.PictureBox bpkx1; + private System.Windows.Forms.PictureBox bpkx60; + private System.Windows.Forms.PictureBox bpkx59; + private System.Windows.Forms.PictureBox bpkx58; + private System.Windows.Forms.PictureBox bpkx57; + private System.Windows.Forms.PictureBox bpkx56; + private System.Windows.Forms.PictureBox bpkx55; + private System.Windows.Forms.PictureBox bpkx54; + private System.Windows.Forms.PictureBox bpkx53; + private System.Windows.Forms.PictureBox bpkx52; + private System.Windows.Forms.PictureBox bpkx51; + private System.Windows.Forms.PictureBox bpkx50; + private System.Windows.Forms.PictureBox bpkx49; + private System.Windows.Forms.PictureBox bpkx48; + private System.Windows.Forms.PictureBox bpkx47; + private System.Windows.Forms.PictureBox bpkx46; + private System.Windows.Forms.PictureBox bpkx45; + private System.Windows.Forms.PictureBox bpkx44; + private System.Windows.Forms.PictureBox bpkx43; + private System.Windows.Forms.PictureBox bpkx42; + private System.Windows.Forms.PictureBox bpkx41; + private System.Windows.Forms.PictureBox bpkx40; + private System.Windows.Forms.PictureBox bpkx39; + private System.Windows.Forms.PictureBox bpkx38; + private System.Windows.Forms.PictureBox bpkx37; + private System.Windows.Forms.PictureBox bpkx36; + private System.Windows.Forms.PictureBox bpkx35; + private System.Windows.Forms.PictureBox bpkx34; + private System.Windows.Forms.PictureBox bpkx33; + private System.Windows.Forms.PictureBox bpkx32; + private System.Windows.Forms.PictureBox bpkx31; + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem Menu_Close; + private System.Windows.Forms.ToolStripMenuItem Menu_Exit; + private System.Windows.Forms.ToolStripMenuItem Menu_Tools; + private System.Windows.Forms.ToolStripMenuItem Menu_OpenDB; + private System.Windows.Forms.Panel P_Results; + private System.Windows.Forms.ComboBox CB_HeldItem; + public System.Windows.Forms.ComboBox CB_Species; + private System.Windows.Forms.ComboBox CB_Move4; + private System.Windows.Forms.ComboBox CB_Move3; + private System.Windows.Forms.ComboBox CB_Move2; + private System.Windows.Forms.ComboBox CB_Move1; + private System.Windows.Forms.Label Label_HeldItem; + private System.Windows.Forms.Label Label_Species; + private System.Windows.Forms.Button B_Search; + private System.Windows.Forms.Label L_Move1; + private System.Windows.Forms.Label L_Move2; + private System.Windows.Forms.Label L_Move3; + private System.Windows.Forms.Label L_Move4; + private System.Windows.Forms.Button B_Reset; + private System.Windows.Forms.Label L_Count; + private System.Windows.Forms.Panel PAN_Box; + private System.Windows.Forms.PictureBox bpkx66; + private System.Windows.Forms.PictureBox bpkx65; + private System.Windows.Forms.PictureBox bpkx64; + private System.Windows.Forms.PictureBox bpkx63; + private System.Windows.Forms.PictureBox bpkx62; + private System.Windows.Forms.PictureBox bpkx61; + private System.Windows.Forms.Label L_Viewed; + private System.Windows.Forms.ToolStripMenuItem Menu_Export; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchSettings; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchBoxes; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchDatabase; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchLegal; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchIllegal; + private System.Windows.Forms.TableLayoutPanel TLP_Filters; + public System.Windows.Forms.CheckBox CHK_Shiny; + public System.Windows.Forms.CheckBox CHK_IsEgg; + private System.Windows.Forms.FlowLayoutPanel FLP_Egg; + private System.Windows.Forms.FlowLayoutPanel FLP_Level; + private System.Windows.Forms.Label L_Format; + private System.Windows.Forms.FlowLayoutPanel FLP_Format; + private System.Windows.Forms.ComboBox CB_FormatComparator; + private System.Windows.Forms.ComboBox CB_Format; + private System.Windows.Forms.RichTextBox RTB_Instructions; + private System.Windows.Forms.ToolStripMenuItem Menu_SearchAdvanced; + } +} \ No newline at end of file diff --git a/PKHeX/Subforms/SAV_MysteryGiftDB.cs b/PKHeX/Subforms/SAV_MysteryGiftDB.cs new file mode 100644 index 000000000..f6a4819af --- /dev/null +++ b/PKHeX/Subforms/SAV_MysteryGiftDB.cs @@ -0,0 +1,351 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Windows.Forms; + +namespace PKHeX +{ + public partial class SAV_MysteryGiftDB : Form + { + public SAV_MysteryGiftDB(Main f1) + { + m_parent = f1; + InitializeComponent(); + + // Preset Filters to only show PKM available for loaded save + CB_FormatComparator.SelectedIndex = 3; // <= + + PKXBOXES = new[] + { + bpkx1, bpkx2, bpkx3, bpkx4, bpkx5, bpkx6, + bpkx7, bpkx8, bpkx9, bpkx10,bpkx11,bpkx12, + bpkx13,bpkx14,bpkx15,bpkx16,bpkx17,bpkx18, + bpkx19,bpkx20,bpkx21,bpkx22,bpkx23,bpkx24, + bpkx25,bpkx26,bpkx27,bpkx28,bpkx29,bpkx30, + + bpkx31,bpkx32,bpkx33,bpkx34,bpkx35,bpkx36, + bpkx37,bpkx38,bpkx39,bpkx40,bpkx41,bpkx42, + bpkx43,bpkx44,bpkx45,bpkx46,bpkx47,bpkx48, + bpkx49,bpkx50,bpkx51,bpkx52,bpkx53,bpkx54, + bpkx55,bpkx56,bpkx57,bpkx58,bpkx59,bpkx60, + bpkx61,bpkx62,bpkx63,bpkx64,bpkx65,bpkx66, + }; + + // Enable Scrolling when hovered over + PAN_Box.MouseHover += (sender, args) => + { + if (ActiveForm == this) + SCR_Box.Focus(); + }; + foreach (var slot in PKXBOXES) + { + slot.MouseEnter += (sender, args) => + { + if (ActiveForm == this) + SCR_Box.Focus(); + }; + // Enable Click + slot.MouseClick += (sender, args) => + { + if (ModifierKeys == Keys.Control) + clickView(sender, args); + }; + } + + Counter = L_Count.Text; + Viewed = L_Viewed.Text; + L_Viewed.Text = ""; // invis for now + populateComboBoxes(); + + ContextMenuStrip mnu = new ContextMenuStrip(); + ToolStripMenuItem mnuView = new ToolStripMenuItem("View"); + + // Assign event handlers + mnuView.Click += clickView; + + // Add to main context menu + mnu.Items.AddRange(new ToolStripItem[] { mnuView }); + + // Assign to datagridview + foreach (PictureBox p in PKXBOXES) + p.ContextMenuStrip = mnu; + + // Load Data + RawDB = new List(); + RawDB.AddRange(Legal.WC6DB); + foreach (string file in Directory.GetFiles(DatabasePath, "*", SearchOption.AllDirectories)) + { + FileInfo fi = new FileInfo(file); + if (!MysteryGift.getIsMysteryGift(fi.Length)) continue; + var mg = MysteryGift.getMysteryGift(File.ReadAllBytes(file), fi.Extension); + if (mg != null) + RawDB.Add(mg); + } + + RawDB = new List(RawDB.Where(mg => !mg.IsItem && mg.IsPokémon && mg.Species > 0).Distinct().OrderBy(mg => mg.Species)); + foreach (var mg in RawDB) + mg.GiftUsed = false; + setResults(RawDB); + + Menu_SearchSettings.DropDown.Closing += (sender, e) => + { + if (e.CloseReason == ToolStripDropDownCloseReason.ItemClicked) + e.Cancel = true; + }; + CenterToParent(); + } + private readonly Main m_parent; + private readonly PictureBox[] PKXBOXES; + private readonly string DatabasePath = Main.WC6DatabasePath; + private List Results; + private readonly List RawDB; + private int slotSelected = -1; // = null; + private Image slotColor; + private const int RES_MAX = 66; + private const int RES_MIN = 6; + private readonly string Counter; + private readonly string Viewed; + private const int MAXFORMAT = 6; + + // Important Events + private void clickView(object sender, EventArgs e) + { + sender = ((sender as ToolStripItem)?.Owner as ContextMenuStrip)?.SourceControl ?? sender as PictureBox; + int index = Array.IndexOf(PKXBOXES, sender); + + var dataArr = Results.Skip(SCR_Box.Value * RES_MIN).Take(RES_MAX).ToArray(); + if (index >= dataArr.Length) + System.Media.SystemSounds.Exclamation.Play(); + else + { + m_parent.populateFields(dataArr[index].convertToPKM(Main.SAV), false); + slotSelected = index + SCR_Box.Value * RES_MIN; + slotColor = Properties.Resources.slotView; + FillPKXBoxes(SCR_Box.Value); + L_Viewed.Text = string.Format(Viewed, dataArr[index].FileName); + } + } + private void populateComboBoxes() + { + // Set the Text + CB_HeldItem.DisplayMember = + CB_Species.DisplayMember = "Text"; + + // Set the Value + CB_HeldItem.ValueMember = + CB_Species.ValueMember = "Value"; + + var Any = new ComboItem {Text = "Any", Value = -1}; + + var DS_Species = new List(Main.SpeciesDataSource); + DS_Species.RemoveAt(0); DS_Species.Insert(0, Any); CB_Species.DataSource = DS_Species; + + var DS_Item = new List(Main.ItemDataSource); + DS_Item.Insert(0, Any); CB_HeldItem.DataSource = DS_Item; + + // Set the Move ComboBoxes too.. + var DS_Move = new List(Main.MoveDataSource); + DS_Move.RemoveAt(0); DS_Move.Insert(0, Any); + { + foreach (ComboBox cb in new[] { CB_Move1, CB_Move2, CB_Move3, CB_Move4 }) + { + cb.DisplayMember = "Text"; cb.ValueMember = "Value"; + cb.DataSource = new BindingSource(DS_Move, null); + } + } + + // Trigger a Reset + resetFilters(null, null); + } + private void resetFilters(object sender, EventArgs e) + { + CHK_Shiny.Checked = CHK_IsEgg.Checked = true; + CHK_Shiny.CheckState = CHK_IsEgg.CheckState = CheckState.Indeterminate; + CB_HeldItem.SelectedIndex = 0; + CB_Species.SelectedIndex = 0; + + CB_Move1.SelectedIndex = CB_Move2.SelectedIndex = CB_Move3.SelectedIndex = CB_Move4.SelectedIndex = 0; + RTB_Instructions.Clear(); + + if (sender != null) + System.Media.SystemSounds.Asterisk.Play(); + } + + // IO Usage + private void openDB(object sender, EventArgs e) + { + if (Directory.Exists(DatabasePath)) + Process.Start("explorer.exe", DatabasePath); + } + private void Menu_Export_Click(object sender, EventArgs e) + { + if (Results == null || Results.Count == 0) + { Util.Alert("No results to export."); return; } + + if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Export to a folder?")) + return; + + FolderBrowserDialog fbd = new FolderBrowserDialog(); + if (DialogResult.OK != fbd.ShowDialog()) + return; + + string path = fbd.SelectedPath; + if (!Directory.Exists(path)) // just in case... + Directory.CreateDirectory(path); + + foreach (var gift in Results) + File.WriteAllBytes(Path.Combine(path, Util.CleanFileName(gift.FileName)), gift.Data); + } + + // View Updates + private void B_Search_Click(object sender, EventArgs e) + { + // Populate Search Query Result + IEnumerable res = RawDB; + + int format = MAXFORMAT + 1 - CB_Format.SelectedIndex; + + switch (CB_FormatComparator.SelectedIndex) + { + case 0: /* Do nothing */ break; + case 1: res = res.Where(mg => mg.Format >= format); break; + case 2: res = res.Where(mg => mg.Format == format); break; + case 3: res = res.Where(mg => mg.Format <= format); break; + } + + // Primary Searchables + int species = Util.getIndex(CB_Species); + int item = Util.getIndex(CB_HeldItem); + if (species != -1) res = res.Where(pk => pk.Species == species); + if (item != -1) res = res.Where(pk => pk.HeldItem == item); + + // Secondary Searchables + int move1 = Util.getIndex(CB_Move1); + int move2 = Util.getIndex(CB_Move2); + int move3 = Util.getIndex(CB_Move3); + int move4 = Util.getIndex(CB_Move4); + if (move1 != -1) res = res.Where(pk => pk.Moves.Contains(move1)); + if (move2 != -1) res = res.Where(pk => pk.Moves.Contains(move2)); + if (move3 != -1) res = res.Where(pk => pk.Moves.Contains(move3)); + if (move4 != -1) res = res.Where(pk => pk.Moves.Contains(move4)); + if (CHK_Shiny.CheckState == CheckState.Checked) res = res.Where(pk => pk.IsShiny); + if (CHK_Shiny.CheckState == CheckState.Unchecked) res = res.Where(pk => !pk.IsShiny); + if (CHK_IsEgg.CheckState == CheckState.Checked) res = res.Where(pk => pk.IsEgg); + if (CHK_IsEgg.CheckState == CheckState.Unchecked) res = res.Where(pk => !pk.IsEgg); + + slotSelected = -1; // reset the slot last viewed + + if (RTB_Instructions.Lines.Any(line => line.Length > 0)) + { + var raw = + RTB_Instructions.Lines + .Where(line => !string.IsNullOrWhiteSpace(line)) + .Where(line => new[] { '!', '=' }.Contains(line[0])); + + var filters = (from line in raw + let eval = line[0] == '=' + let split = line.Substring(1).Split('=') + where split.Length == 2 && !string.IsNullOrWhiteSpace(split[0]) + select new BatchEditor.StringInstruction { PropertyName = split[0], PropertyValue = split[1], Evaluator = eval }).ToArray(); + + if (filters.Any(z => string.IsNullOrWhiteSpace(z.PropertyValue))) + { Util.Error("Empty Filter Value detected."); return; } + + res = res.Where(gift => // Compare across all filters + { + foreach (var cmd in filters) + { + if (!gift.GetType().HasProperty(cmd.PropertyName)) + return false; + try { if (ReflectUtil.GetValueEquals(gift, cmd.PropertyName, cmd.PropertyValue) == cmd.Evaluator) continue; } + catch { Console.WriteLine($"Unable to compare {cmd.PropertyName} to {cmd.PropertyValue}."); } + return false; + } + return true; + }); + } + + var results = res.ToArray(); + if (results.Length == 0) + { + if (!Menu_SearchBoxes.Checked && !Menu_SearchDatabase.Checked) + Util.Alert("No data source to search!", "No results found!"); + else + Util.Alert("No results found!"); + } + setResults(new List(results)); // updates Count Label as well. + System.Media.SystemSounds.Asterisk.Play(); + } + private void updateScroll(object sender, ScrollEventArgs e) + { + if (e.OldValue != e.NewValue) + FillPKXBoxes(e.NewValue); + } + private void setResults(List res) + { + Results = new List(res); + + SCR_Box.Maximum = (int)Math.Ceiling((decimal)Results.Count / RES_MIN); + if (SCR_Box.Maximum > 0) SCR_Box.Maximum -= 1; + + SCR_Box.Value = 0; + FillPKXBoxes(0); + + L_Count.Text = string.Format(Counter, Results.Count); + } + private void FillPKXBoxes(int start) + { + if (Results == null) + for (int i = 0; i < RES_MAX; i++) + PKXBOXES[i].Image = null; + var data = Results.Skip(start * RES_MIN).Take(RES_MAX).ToArray(); + for (int i = 0; i < data.Length; i++) + PKXBOXES[i].Image = SAV_Wondercard.getSprite(data[i]); + for (int i = data.Length; i < RES_MAX; i++) + PKXBOXES[i].Image = null; + + for (int i = 0; i < RES_MAX; i++) + PKXBOXES[i].BackgroundImage = Properties.Resources.slotTrans; + if (slotSelected != -1 && slotSelected >= RES_MIN * start && slotSelected < RES_MIN * start + RES_MAX) + PKXBOXES[slotSelected - start * RES_MIN].BackgroundImage = slotColor ?? Properties.Resources.slotView; + } + + private void Menu_SearchAdvanced_Click(object sender, EventArgs e) + { + if (!Menu_SearchAdvanced.Checked) + { Size = MinimumSize; RTB_Instructions.Clear(); } + else Size = MaximumSize; + } + + private void Menu_Exit_Click(object sender, EventArgs e) + { + Close(); + } + protected override void OnMouseWheel(MouseEventArgs e) + { + if (!PAN_Box.RectangleToScreen(PAN_Box.ClientRectangle).Contains(MousePosition)) + return; + int oldval = SCR_Box.Value; + int newval = oldval + (e.Delta < 0 ? 1 : -1); + if (newval >= SCR_Box.Minimum && SCR_Box.Maximum >= newval) + FillPKXBoxes(SCR_Box.Value = newval); + } + + private void changeFormatFilter(object sender, EventArgs e) + { + if (CB_FormatComparator.SelectedIndex == 0) + { + CB_Format.Visible = false; // !any + CB_Format.SelectedIndex = 0; + } + else + { + CB_Format.Visible = true; + CB_Format.SelectedIndex = MAXFORMAT - Main.SAV.Generation + 1; // SAV generation (offset by 1 for "Any") + } + } + } +} diff --git a/PKHeX/Subforms/SAV_MysteryGiftDB.resx b/PKHeX/Subforms/SAV_MysteryGiftDB.resx new file mode 100644 index 000000000..2f3d5fa66 --- /dev/null +++ b/PKHeX/Subforms/SAV_MysteryGiftDB.resx @@ -0,0 +1,420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + 17, 17 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + + + AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAAAE + AAAAAAAAAAAAAAAAAAAAAAAAIyMjAQAAAAALCwsPJiYmJysrKycqKionKSkpJykpKScpKSknKioqJyoq + KicrKysnJycnJw0ODQ8AAAAAJiYmAQAAAABpaWlHq6ur17+/v+6+vr7svr6+7b6+vu2+vr7tvr6+7b6+ + vu2+vr7tvr6+7L+/v+6rq6vXampqSAAAAAAoKSgXvr++3eLi4v/g4OD94eHh/+Hh4f/i4uL/4uLi/+Li + 4v/i4uL/4eHh/+Dh4P/g4OD94uLi/7+/v90sLCwXfn5+PNna2frg4OD/39/f/uHh4f7h4eH+39/f/uDg + 4P7g4OD+39/f/uHh4f7h4OH+39/f/t/g3//a2tr6g4ODPoOCgz7X19f64+Pj/+Li4v7k5OT/4+Tj//Ly + 8v/19fX/9PT0//T09P/k5OT/5OTk/+Pj4/7j4+P/19jX+4qLikCDhIM+2tra++Xl5f/k5eT+5OTk//Lz + 8v+urq7/RUVF/z4+Pv+Zmpn/8fHx/+Xm5f/k5eT+5eXl/9ra2vyLi4tAhYWFPuXm5vvx8vP/7+/w/v// + //+sra3/AgIC/15eXv9tbG3/BQUF/4yMjP//////7+/w/vHy8//l5ub8jY2NQC4uLD5LS0f7UFBL/09P + Sv5YWVP/FBUS/29wcP///////////5SUlP8PDw//U1NO/1BQS/5PT0r/S0tH/DIyMEAAAAs+AAAM+wAA + Dv8AAA/+AwMS/wAAAP+UlJX///////////+3t7n/AAAA/wAAD/8BAQ/+AAAO/wAADPwCAg5ABARSPgoK + k/sNDab/DQ2o/hAQvP8CAmj/IiIW/7Kzrv/Cw8D/NDQm/wAATf8QELz/DQ2q/gwMp/8LC5T8Dg5bQAUF + Xj4KCpz7DQ2u/w0NsP4NDbX/Dw+//wUFYf8CAhL/AwMP/wMDTf8ODrj/Dg64/w0NsP4MDK7/Cwud/A8P + aEEGBmU9DAyl+w4Otf8ODrf+Dw+6/xAQvv8TE8v/EhK+/xAQvP8TE8v/EBDA/w8Puf8PD7f+Dg61/w0N + pvsREW9ACAhtQA8PsfsTE77/ExO//xQUwP8UFML/FBTD/xUVyP8WFsn/FRXE/xQUw/8UFMH/ExO//xMT + vv8QELL7ERF3QxkZdCgXF771ExPH/xUVyPwVFcn9FhbL/RcXzP0XF8z9FxfM/RcXy/0XF8v9FhbJ/RUV + yPwTE8f/Fxe+9RkZdykAAAAAIyOtghsbx/8ZGcj+GRnJ/xoayf8aGsn/GhrK/xoayv8aGsn/GhrJ/xkZ + yf8ZGcj+GxvH/yMjrYQAAAAAAADHAQAAAAAzM51FLCyscCoqrGwqKqxtKSmsbSoqrG0qKqxtKSmsbSoq + rG0qKqxsLCyscDMznUUAAAAAAAAAAP//AADAAwAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIAB + AACAAQAAgAEAAIABAACAAQAAgAEAAP//AAAoAAAAIAAAAEAAAAABACAAAAAAAAAQAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKysrCR0dHSMWFhY3GBgYORgYGDkYGBg5GBgYORgY + GDkYGBg5GBgYORgYGDkYGBg5GBgYORgYGDkYGBg5GBgYORgYGDkYGBg5GBgYORgYGDkYGBg5FxcXNx4e + HiQuLi4JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEhIARYWFis7OzuVkJCQ2ampqeqqqqrsqqqq7Kqq + quyqqqrsqqqq7Kqqquyqqqrsqqqq7Kqqquyqqqrsqqqq7Kqqquyqqqrsqqqq7Kqqquyqqqrsqqqq7Kqq + quypqanqkZGR2j09PZcXFxcsUFBQAQAAAAAAAAAAAAAAAAAAAAASEhIuhISEytvb2/7W1tb/19fX/9jY + 2P/Y2Nj/2NjY/9jY2P/Y2Nj/2NjY/9nZ2f/Z2dn/2dnZ/9nZ2f/Z2dn/2dnZ/9nZ2f/Y2Nj/2NjY/9jY + 2P/Y2Nj/2NjY/9fX1//W1tb/29vb/oeHh8sTExMvAAAAAAAAAAAAAAAAPDw8DGtra6zZ2dn/2dnZ/9ra + 2v/b29v/29vb/9vb2//c3Nz/3Nzc/9zc3P/c3Nz/3d3d/93d3f/d3d3/3d3d/93d3f/d3d3/3Nzc/9zc + 3P/c3Nz/3Nzc/9vb2//b29v/29vb/9ra2v/Z2dn/2dnZ/21tba5DQ0MNAAAAAAAAAAAiIiIx1NXU9tna + 2f/c3Nz/3d3d/93e3f/e3t7/3t7e/9/f3//f39//39/f/9/g3//g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg + 4P/g4OD/39/f/9/f3//f39//3t/e/97e3v/d3t3/3d3d/9zc3P/Z2tn/1dXV9icnJzMAAAAAAAAAAFhZ + WFzf4N//3Nzc/97e3v/f39//39/f/9/g3//g4OD/4ODg/+Hh4f/h4eH/4eHh/+Li4v/i4uL/4uLi/+Li + 4v/i4uL/4uLi/+Hi4f/h4eH/4eHh/+Dg4P/g4OD/3+Df/9/f3//f39//3t7e/9zc3P/f39//XV1dXQAA + AAAAAAAAZmZmZdvc2//e3t7/3+Df/+Dg4P/g4eD/4eHh/+Hi4f/i4uL/4uPi/+Pj4//j4+P/5OTk/+Tk + 5P/k5OT/5OTk/+Tk5P/k5OT/4+Pj/+Pj4//j4+P/4uLi/+Li4v/h4eH/4eHh/+Dg4P/f4N//3t7e/9vb + 2/9wcHBoAAAAAAAAAABoaGhl3d3d/9/f3//h4eH/4eLh/+Li4v/j4+P/4+Pj/+Tk5P/k5OT/5eXl/+Xl + 5f/l5uX/5ubm/+bm5v/m5ub/5ubm/+bm5v/l5eX/5eXl/+Tk5P/k5OT/4+Pj/+Pj4//i4uL/4uLi/+Hh + 4f/f39//3N3c/3Nzc2kAAAAAAAAAAGhoaGXe3t7/4ODg/+Li4v/j4+P/4+Pj/+Tk5P/l5eX/5eXl/+bm + 5v/m5+b/5+fn/+fn5//n6Of/6Ojo/+jo6P/o6Oj/5+fn/+fn5//n5+f/5ubm/+Xl5f/l5eX/5OTk/+Pk + 4//j4+P/4uLi/+Dg4P/e3t7/c3NzaQAAAAAAAAAAaGhoZd/g3//i4uL/5OTk/+Tl5P/l5eX/5ebl/+bn + 5v/n5+f/5+jn/+jp6P/p6en/7Ozs/8LCwv+Tk5P/ioqK/66urv/o6ej/6enp/+jp6P/o6Oj/5+jn/+bn + 5v/m5ub/5ebl/+Tl5P/k5OT/4uLi/9/g3/9zdHNpAAAAAAAAAABoaWhl4eLh/+Pk4//m5ub/5ubm/+fn + 5//n6Of/6Ojo/+np6f/p6un/6urq/8bGxv8yMjL/AAAA/wAAAP8AAAD/AAAA/xMTE/+ZmZn/7Ozs/+rq + 6v/p6en/6Ojo/+jo6P/n5+f/5ubm/+bm5v/k5OT/4eHh/3R0dGkAAAAAAAAAAGhpaGXj4+P/5eXl/+fn + 5//n6Of/6Ojo/+np6f/q6ur/6urq/+vr6//Dw8P/DAwM/wAAAP8AAAD/Gxsb/ygoKP8BAQH/AAAA/wAA + AP+FhYX/7O3s/+rr6v/q6ur/6enp/+jo6P/o6Oj/5+fn/+Xl5f/i4+L/dHR0aQAAAAAAAAAAYWFhZeTl + 5P/m5+b/6Ono/+np6f/p6un/6uvq/+vr6//s7Oz/7e7t/ycnJ/8AAAD/Ghoa/7S0tP/m5ub/5OTk/9HR + 0f9GRkb/AAAA/wICAv/IyMj/7Ozs/+vs6//q6+r/6urq/+nq6f/o6ej/5+fn/+Tk5P9sbGxpAAAAAAAA + AAA9Pj1lj4+P/5OTk/+VlZX/lpaW/5eXl/+YmJj/mZmZ/5qamv92dnb/AAAA/wEBAf+/wL//3Nzc/+Tk + 5P/l5eX/3d3d/+Li4v8mJib/AAAA/0ZGRv+ampr/mZmZ/5iYmP+Xl5f/lpaW/5WVlf+Tk5P/j4+P/0ZG + RmoAAAAAAAAAAAwMDGUAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/Nzc3/+fn + 5//q6ur/7O3s/+zt7P/v7+//39/f/4WFhf8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA + AP8AAAD/EBAQagAAAAAAAAAAAwMHZQAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA + AP9NTU3/5ufm//Lz8v/z9PP/8/Tz//X19f/l5eX/nZ2d/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA + AP8AAAD/AAAA/wAAAP8GBgpqAAAAAAAAAAAAABZlAQEk/wEBJ/8CAin/AgIq/wICKv8CAiv/AgIs/wIC + LP8BAR3/AAAA/xwcHP/w8PD/6+zr//r6+v/6+vr/9PT0/+vr6/9lZWX/AAAA/wAAD/8CAi3/AgIs/wIC + K/8CAir/AgIq/wICKf8BASf/AQEl/wUFG2oAAAAAAAAAAAICQGUGBpL/Bwec/wgIo/8JCaf/CQmq/wkJ + rf8JCa//Cgqz/wkJqP8AAAL/AAAA/4CAgP/y8/L/6+zr/+3t7f/u7u7/xMTE/wcHB/8AAAD/BgZz/woK + s/8JCbD/CQmt/wkJqv8JCaj/CAik/wcHnf8HB5P/Dg5MagAAAAAAAAAAAwNHZQgIk/8JCZ3/Cgqj/wsL + p/8LC6n/Cwus/wsLr/8MDLL/DAy2/wYGW/8AAAD/AAAA/1JSUv+sraz/tra2/3h4eP8KCgr/AAAA/wIC + Iv8MDLb/DAyy/wsLsP8LC63/Cwuq/wsLp/8KCqT/CQmd/wgIk/8PD1VrAAAAAAAAAAAEBE1lCQmY/woK + ov8LC6j/DAyr/wwMrf8MDLD/DAyy/w0Ntf8NDbf/Dg67/wUFSv8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA + AP8CAiH/DQ2q/w0NuP8NDbX/DQ2z/wwMsP8MDK7/DAyr/wsLqP8KCqL/CQmZ/xAQWmsAAAAAAAAAAAQE + UGUKCp7/Cwum/wwMrP8NDa//DQ2w/w0Ns/8ODrX/Dg63/w4Ouf8ODrv/Dw/A/wwMiv8FBTj/AAAG/wAA + AP8DAyb/CQls/w8Pu/8PD7z/Dg66/w4OuP8ODrX/DQ2z/w0Nsf8NDa//DAys/wsLp/8KCp7/ERFeawAA + AAAAAAAABQVTZQsLpP8MDKv/DQ2w/w4Os/8ODrT/Dg62/w8PuP8PD7r/Dw+8/w8Pvf8QEL//EBDA/xER + w/8SEsn/ERHJ/xERxf8QEMD/EBC//w8Pvv8PD7z/Dw+6/w8PuP8ODrf/Dg61/w4Os/8NDbH/DAyr/wsL + pP8SEmFrAAAAAAAAAAAGBlZlDAyq/w4OsP8PD7X/Dw+3/w8PuP8QELr/EBC7/xAQvf8REb7/ERHA/xER + wf8REcL/EhLC/xISw/8SEsP/EhLC/xERwv8REcH/ERHA/xERvv8QEL3/EBC7/xAQuv8QELj/Dw+3/w8P + tf8ODrD/DAyq/xMTZWsAAAAAAAAAAAcHWmUODrD/EBC2/xERuv8REbz/ERG9/xISvv8SEr//EhLA/xMT + wf8TE8P/ExPD/xMTxP8TE8X/FBTF/xQUxf8UFMX/ExPE/xMTxP8TE8P/ExPC/xISwf8SEr//EhK+/xER + vf8REbz/ERG6/xAQtv8ODrD/FBRpawAAAAAAAAAACAhcYxAQtf8SErv/ExO+/xQUwP8UFMD/FBTB/xUV + wv8VFcP/FRXE/xUVxf8WFsb/FhbG/xYWx/8WFsf/FhbH/xYWx/8WFsf/FhbG/xYWxf8VFcT/FRXD/xUV + wv8UFMH/FBTB/xQUwP8TE77/EhK7/xAQtf8TE2hoAAAAAAAAAAAQEFNUFRXC/xMTv/8UFMP/FRXE/xUV + xP8VFcX/FRXG/xYWx/8WFsf/FhbI/xYWyf8XF8n/FxfK/xcXyv8XF8r/FxfK/xcXyf8XF8n/FhbI/xYW + yP8WFsf/FhbG/xUVxf8VFcT/FRXE/xQUw/8TE7//FRXB/xAQV1UAAAAAAAAAAA0NPxkjI8byFBTD/xUV + x/8WFsj/FxfJ/xcXyf8XF8r/FxfK/xcXy/8YGMz/GBjM/xgYzP8YGM3/GBjN/xgYzf8YGM3/GBjM/xgY + zP8YGMz/GBjL/xcXy/8XF8r/FxfJ/xcXyf8WFsj/FRXH/xQUw/8jI8f0Dg5GGwAAAAAAAAAAFhZxAiUl + eIUZGcr/FBTI/xUVyv8WFsv/FhbM/xYWzP8WFsz/FhbN/xcXzf8XF83/FxfN/xcXzv8XF87/FxfO/xcX + zv8XF87/FxfN/xcXzf8WFs3/FhbM/xYWzP8WFsz/FhbL/xUVyv8UFMj/GBjJ/yYmeogWFnYCAAAAAAAA + AAAAAAAAGBh1BzMzk50kJNP+FxfK/xgYzP8YGMz/GBjN/xgYzf8YGM3/GBjN/xgYzf8ZGc7/GRnO/xkZ + zv8ZGc7/GRnO/xkZzv8YGM3/GBjN/xgYzf8YGM3/GBjN/xgYzP8YGMz/FxfK/yMj0v4zM5WfFBRkBwAA + AAAAAAAAAAAAAAAAAAAAAAAAHBx7Ay0tdkg3N5emMTGpxSwsp8gsLKfILCynyCwsp8gsLKfILCynyCws + p8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyDExqcU2NpenLi54Shsb + ewMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////8AAAD+AAAAfAAAADwAAAA8AAAAPAAAADwAAAA8AA + AAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AA + AAPAAAADwAAAA8AAAAPAAAAD4AAAB/gAAB////// + + + \ No newline at end of file diff --git a/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs b/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs index 2c72ad174..a71e02fda 100644 --- a/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs +++ b/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs @@ -468,7 +468,7 @@ private void pbBoxSlot_DragEnter(object sender, DragEventArgs e) } private int wc_slot = -1; - private static Image getSprite(MysteryGift gift) + internal static Image getSprite(MysteryGift gift) { Image img; if (gift.IsPokémon) @@ -487,7 +487,7 @@ private static string getDescription(MysteryGift gift) if (gift.Empty) return "Empty Slot. No data!"; - string s = gift.getCardHeader(); + string s = gift.getCardHeader() + Environment.NewLine; if (gift.IsItem) { s += "Item: " + Main.itemlist[gift.Item] + Environment.NewLine + "Quantity: " + gift.Quantity;