From 0745ba3294118070a167956ea3e9b9380ec930cf Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 1 Aug 2018 21:57:15 -0700 Subject: [PATCH] Defer move combobox repop until dropdown Yay sneaky smart solutions! Instead of refilling the combobox when the legal move list changes, wait until the full list is required then repopulate the individual combobox can't even notice the lag besides the individual tab load. yess --- .../Controls/PKM Editor/PKMEditor.Designer.cs | 844 +++++++++--------- .../Controls/PKM Editor/PKMEditor.cs | 37 +- 2 files changed, 455 insertions(+), 426 deletions(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.Designer.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.Designer.cs index 09726a926..3791a2a19 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.Designer.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.Designer.cs @@ -2,12 +2,12 @@ { partial class PKMEditor { - /// + /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; - /// + /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. @@ -22,8 +22,8 @@ protected override void Dispose(bool disposing) #region Component Designer generated code - /// - /// Required method for Designer support - do not modify + /// + /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() @@ -112,6 +112,7 @@ private void InitializeComponent() this.CHK_Shadow = new System.Windows.Forms.CheckBox(); this.FLP_ShinyLeaf = new System.Windows.Forms.FlowLayoutPanel(); this.L_ShinyLeaf = new System.Windows.Forms.Label(); + this.ShinyLeaf = new PKHeX.WinForms.Controls.ShinyLeaf(); this.Tab_Met = new System.Windows.Forms.TabPage(); this.CHK_AsEgg = new System.Windows.Forms.CheckBox(); this.GB_EggConditions = new System.Windows.Forms.GroupBox(); @@ -147,6 +148,8 @@ private void InitializeComponent() this.L_MetTimeOfDay = new System.Windows.Forms.Label(); this.CB_MetTimeOfDay = new System.Windows.Forms.ComboBox(); this.Tab_Stats = new System.Windows.Forms.TabPage(); + this.Stats = new PKHeX.WinForms.Controls.StatEditor(); + this.Contest = new PKHeX.WinForms.Controls.ContestStat(); this.Tab_Attacks = new System.Windows.Forms.TabPage(); this.PB_WarnMove4 = new System.Windows.Forms.PictureBox(); this.PB_WarnMove3 = new System.Windows.Forms.PictureBox(); @@ -204,14 +207,11 @@ private void InitializeComponent() this.TB_ExtraByte = new System.Windows.Forms.MaskedTextBox(); this.CB_ExtraBytes = new System.Windows.Forms.ComboBox(); this.GB_OT = new System.Windows.Forms.GroupBox(); + this.TID_Trainer = new PKHeX.WinForms.Controls.TrainerID(); this.Label_OTGender = new System.Windows.Forms.Label(); this.TB_OT = new System.Windows.Forms.TextBox(); this.Label_OT = new System.Windows.Forms.Label(); this.Label_EncryptionConstant = new System.Windows.Forms.Label(); - this.ShinyLeaf = new PKHeX.WinForms.Controls.ShinyLeaf(); - this.Stats = new PKHeX.WinForms.Controls.StatEditor(); - this.Contest = new PKHeX.WinForms.Controls.ContestStat(); - this.TID_Trainer = new PKHeX.WinForms.Controls.TrainerID(); this.tabMain.SuspendLayout(); this.Tab_Main.SuspendLayout(); this.FLP_Main.SuspendLayout(); @@ -290,11 +290,11 @@ private void InitializeComponent() this.GB_ExtraBytes.SuspendLayout(); this.GB_OT.SuspendLayout(); this.SuspendLayout(); - // + // // tabMain - // + // this.tabMain.AllowDrop = true; - this.tabMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.tabMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.tabMain.Controls.Add(this.Tab_Main); this.tabMain.Controls.Add(this.Tab_Met); @@ -306,9 +306,9 @@ private void InitializeComponent() this.tabMain.SelectedIndex = 0; this.tabMain.Size = new System.Drawing.Size(280, 488); this.tabMain.TabIndex = 1; - // + // // Tab_Main - // + // this.Tab_Main.AllowDrop = true; this.Tab_Main.Controls.Add(this.FLP_Main); this.Tab_Main.Location = new System.Drawing.Point(4, 22); @@ -318,10 +318,10 @@ private void InitializeComponent() this.Tab_Main.TabIndex = 0; this.Tab_Main.Text = "Main"; this.Tab_Main.UseVisualStyleBackColor = true; - // + // // FLP_Main - // - this.FLP_Main.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + // + this.FLP_Main.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.FLP_Main.Controls.Add(this.FLP_PID); this.FLP_Main.Controls.Add(this.FLP_Species); @@ -345,9 +345,9 @@ private void InitializeComponent() this.FLP_Main.Name = "FLP_Main"; this.FLP_Main.Size = new System.Drawing.Size(272, 459); this.FLP_Main.TabIndex = 103; - // + // // FLP_PID - // + // this.FLP_PID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_PID.Controls.Add(this.FLP_PIDLeft); this.FLP_PID.Controls.Add(this.FLP_PIDRight); @@ -356,9 +356,9 @@ private void InitializeComponent() this.FLP_PID.Name = "FLP_PID"; this.FLP_PID.Size = new System.Drawing.Size(272, 22); this.FLP_PID.TabIndex = 0; - // + // // FLP_PIDLeft - // + // this.FLP_PIDLeft.Anchor = System.Windows.Forms.AnchorStyles.Right; this.FLP_PIDLeft.Controls.Add(this.Label_PID); this.FLP_PIDLeft.Controls.Add(this.BTN_Shinytize); @@ -369,9 +369,9 @@ private void InitializeComponent() this.FLP_PIDLeft.Name = "FLP_PIDLeft"; this.FLP_PIDLeft.Size = new System.Drawing.Size(110, 22); this.FLP_PIDLeft.TabIndex = 0; - // + // // Label_PID - // + // this.Label_PID.Anchor = System.Windows.Forms.AnchorStyles.Right; this.Label_PID.AutoSize = true; this.Label_PID.Location = new System.Drawing.Point(82, 5); @@ -381,9 +381,9 @@ private void InitializeComponent() this.Label_PID.TabIndex = 0; this.Label_PID.Text = "PID:"; this.Label_PID.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // BTN_Shinytize - // + // this.BTN_Shinytize.Anchor = System.Windows.Forms.AnchorStyles.Right; this.BTN_Shinytize.Location = new System.Drawing.Point(58, 0); this.BTN_Shinytize.Margin = new System.Windows.Forms.Padding(0); @@ -393,9 +393,9 @@ private void InitializeComponent() this.BTN_Shinytize.Text = "☆"; this.BTN_Shinytize.UseVisualStyleBackColor = true; this.BTN_Shinytize.Click += new System.EventHandler(this.UpdateShinyPID); - // + // // Label_IsShiny - // + // this.Label_IsShiny.Anchor = System.Windows.Forms.AnchorStyles.Right; this.Label_IsShiny.Image = ((System.Drawing.Image)(resources.GetObject("Label_IsShiny.Image"))); this.Label_IsShiny.InitialImage = ((System.Drawing.Image)(resources.GetObject("Label_IsShiny.InitialImage"))); @@ -407,9 +407,9 @@ private void InitializeComponent() this.Label_IsShiny.TabIndex = 62; this.Label_IsShiny.TabStop = false; this.Label_IsShiny.Visible = false; - // + // // FLP_PIDRight - // + // this.FLP_PIDRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_PIDRight.Controls.Add(this.TB_PID); this.FLP_PIDRight.Controls.Add(this.Label_Gender); @@ -419,9 +419,9 @@ private void InitializeComponent() this.FLP_PIDRight.Name = "FLP_PIDRight"; this.FLP_PIDRight.Size = new System.Drawing.Size(162, 22); this.FLP_PIDRight.TabIndex = 104; - // + // // TB_PID - // + // this.TB_PID.Anchor = System.Windows.Forms.AnchorStyles.Left; this.TB_PID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_PID.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -434,9 +434,9 @@ private void InitializeComponent() this.TB_PID.Text = "12345678"; this.TB_PID.MouseHover += new System.EventHandler(this.UpdateTSV); this.TB_PID.Validated += new System.EventHandler(this.Update_ID); - // + // // Label_Gender - // + // this.Label_Gender.Anchor = System.Windows.Forms.AnchorStyles.Left; this.Label_Gender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label_Gender.Location = new System.Drawing.Point(60, 0); @@ -447,9 +447,9 @@ private void InitializeComponent() this.Label_Gender.Text = "-"; this.Label_Gender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.Label_Gender.Click += new System.EventHandler(this.ClickGender); - // + // // BTN_RerollPID - // + // this.BTN_RerollPID.Anchor = System.Windows.Forms.AnchorStyles.Left; this.BTN_RerollPID.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.BTN_RerollPID.Location = new System.Drawing.Point(79, 1); @@ -460,9 +460,9 @@ private void InitializeComponent() this.BTN_RerollPID.Text = "Reroll"; this.BTN_RerollPID.UseVisualStyleBackColor = true; this.BTN_RerollPID.Click += new System.EventHandler(this.UpdateRandomPID); - // + // // FLP_Species - // + // this.FLP_Species.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Species.Controls.Add(this.Label_Species); this.FLP_Species.Controls.Add(this.CB_Species); @@ -471,9 +471,9 @@ private void InitializeComponent() this.FLP_Species.Name = "FLP_Species"; this.FLP_Species.Size = new System.Drawing.Size(272, 21); this.FLP_Species.TabIndex = 1; - // + // // Label_Species - // + // this.Label_Species.Anchor = System.Windows.Forms.AnchorStyles.Right; this.Label_Species.Location = new System.Drawing.Point(0, 0); this.Label_Species.Margin = new System.Windows.Forms.Padding(0); @@ -483,9 +483,9 @@ private void InitializeComponent() this.Label_Species.Text = "Species:"; this.Label_Species.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_Species.Click += new System.EventHandler(this.UpdateNickname); - // + // // CB_Species - // + // this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Species.FormattingEnabled = true; @@ -497,9 +497,9 @@ private void InitializeComponent() this.CB_Species.SelectedIndexChanged += new System.EventHandler(this.ValidateComboBox2); this.CB_Species.SelectedValueChanged += new System.EventHandler(this.UpdateSpecies); this.CB_Species.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_Nickname - // + // this.FLP_Nickname.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Nickname.Controls.Add(this.FLP_NicknameLeft); this.FLP_Nickname.Controls.Add(this.TB_Nickname); @@ -508,9 +508,9 @@ private void InitializeComponent() this.FLP_Nickname.Name = "FLP_Nickname"; this.FLP_Nickname.Size = new System.Drawing.Size(272, 22); this.FLP_Nickname.TabIndex = 2; - // + // // FLP_NicknameLeft - // + // this.FLP_NicknameLeft.Anchor = System.Windows.Forms.AnchorStyles.Right; this.FLP_NicknameLeft.Controls.Add(this.CHK_Nicknamed); this.FLP_NicknameLeft.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; @@ -519,9 +519,9 @@ private void InitializeComponent() this.FLP_NicknameLeft.Name = "FLP_NicknameLeft"; this.FLP_NicknameLeft.Size = new System.Drawing.Size(110, 21); this.FLP_NicknameLeft.TabIndex = 109; - // + // // CHK_Nicknamed - // + // this.CHK_Nicknamed.AutoSize = true; this.CHK_Nicknamed.Location = new System.Drawing.Point(36, 3); this.CHK_Nicknamed.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -532,9 +532,9 @@ private void InitializeComponent() this.CHK_Nicknamed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_Nicknamed.UseVisualStyleBackColor = true; this.CHK_Nicknamed.CheckedChanged += new System.EventHandler(this.UpdateNickname); - // + // // TB_Nickname - // + // this.TB_Nickname.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_Nickname.Location = new System.Drawing.Point(110, 0); this.TB_Nickname.Margin = new System.Windows.Forms.Padding(0); @@ -544,9 +544,9 @@ private void InitializeComponent() this.TB_Nickname.TabIndex = 5; this.TB_Nickname.TextChanged += new System.EventHandler(this.UpdateIsNicknamed); this.TB_Nickname.MouseDown += new System.Windows.Forms.MouseEventHandler(this.UpdateNicknameClick); - // + // // FLP_EXPLevel - // + // this.FLP_EXPLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_EXPLevel.Controls.Add(this.Label_EXP); this.FLP_EXPLevel.Controls.Add(this.FLP_EXPLevelRight); @@ -555,9 +555,9 @@ private void InitializeComponent() this.FLP_EXPLevel.Name = "FLP_EXPLevel"; this.FLP_EXPLevel.Size = new System.Drawing.Size(272, 21); this.FLP_EXPLevel.TabIndex = 3; - // + // // Label_EXP - // + // this.Label_EXP.Location = new System.Drawing.Point(0, 0); this.Label_EXP.Margin = new System.Windows.Forms.Padding(0); this.Label_EXP.Name = "Label_EXP"; @@ -565,9 +565,9 @@ private void InitializeComponent() this.Label_EXP.TabIndex = 3; this.Label_EXP.Text = "EXP:"; this.Label_EXP.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // FLP_EXPLevelRight - // + // this.FLP_EXPLevelRight.Anchor = System.Windows.Forms.AnchorStyles.Left; this.FLP_EXPLevelRight.Controls.Add(this.TB_EXP); this.FLP_EXPLevelRight.Controls.Add(this.Label_CurLevel); @@ -578,9 +578,9 @@ private void InitializeComponent() this.FLP_EXPLevelRight.Name = "FLP_EXPLevelRight"; this.FLP_EXPLevelRight.Size = new System.Drawing.Size(162, 21); this.FLP_EXPLevelRight.TabIndex = 0; - // + // // TB_EXP - // + // this.TB_EXP.Anchor = System.Windows.Forms.AnchorStyles.Left; this.TB_EXP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_EXP.Location = new System.Drawing.Point(0, 0); @@ -591,9 +591,9 @@ private void InitializeComponent() this.TB_EXP.TabIndex = 7; this.TB_EXP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.TB_EXP.TextChanged += new System.EventHandler(this.UpdateEXPLevel); - // + // // Label_CurLevel - // + // this.Label_CurLevel.Location = new System.Drawing.Point(46, 0); this.Label_CurLevel.Margin = new System.Windows.Forms.Padding(0); this.Label_CurLevel.Name = "Label_CurLevel"; @@ -602,9 +602,9 @@ private void InitializeComponent() this.Label_CurLevel.Text = "Level:"; this.Label_CurLevel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_CurLevel.Click += new System.EventHandler(this.ClickMetLocation); - // + // // TB_Level - // + // this.TB_Level.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_Level.Location = new System.Drawing.Point(104, 0); this.TB_Level.Margin = new System.Windows.Forms.Padding(0); @@ -614,9 +614,9 @@ private void InitializeComponent() this.TB_Level.TabIndex = 8; this.TB_Level.Click += new System.EventHandler(this.ClickLevel); this.TB_Level.TextChanged += new System.EventHandler(this.UpdateEXPLevel); - // + // // MT_Level - // + // this.MT_Level.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.MT_Level.Enabled = false; this.MT_Level.Location = new System.Drawing.Point(126, 0); @@ -628,9 +628,9 @@ private void InitializeComponent() this.MT_Level.Visible = false; this.MT_Level.Click += new System.EventHandler(this.ClickLevel); this.MT_Level.TextChanged += new System.EventHandler(this.UpdateEXPLevel); - // + // // FLP_Nature - // + // this.FLP_Nature.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Nature.Controls.Add(this.Label_Nature); this.FLP_Nature.Controls.Add(this.CB_Nature); @@ -639,9 +639,9 @@ private void InitializeComponent() this.FLP_Nature.Name = "FLP_Nature"; this.FLP_Nature.Size = new System.Drawing.Size(272, 21); this.FLP_Nature.TabIndex = 4; - // + // // Label_Nature - // + // this.Label_Nature.Location = new System.Drawing.Point(0, 0); this.Label_Nature.Margin = new System.Windows.Forms.Padding(0); this.Label_Nature.Name = "Label_Nature"; @@ -649,9 +649,9 @@ private void InitializeComponent() this.Label_Nature.TabIndex = 8; this.Label_Nature.Text = "Nature:"; this.Label_Nature.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Nature - // + // this.CB_Nature.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Nature.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Nature.FormattingEnabled = true; @@ -663,9 +663,9 @@ private void InitializeComponent() this.CB_Nature.SelectedIndexChanged += new System.EventHandler(this.ValidateComboBox2); this.CB_Nature.MouseHover += new System.EventHandler(this.UpdateNatureModification); this.CB_Nature.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_HeldItem - // + // this.FLP_HeldItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_HeldItem.Controls.Add(this.Label_HeldItem); this.FLP_HeldItem.Controls.Add(this.CB_HeldItem); @@ -674,9 +674,9 @@ private void InitializeComponent() this.FLP_HeldItem.Name = "FLP_HeldItem"; this.FLP_HeldItem.Size = new System.Drawing.Size(272, 21); this.FLP_HeldItem.TabIndex = 5; - // + // // Label_HeldItem - // + // this.Label_HeldItem.Anchor = System.Windows.Forms.AnchorStyles.Right; this.Label_HeldItem.Location = new System.Drawing.Point(0, 0); this.Label_HeldItem.Margin = new System.Windows.Forms.Padding(0); @@ -685,9 +685,9 @@ private void InitializeComponent() this.Label_HeldItem.TabIndex = 51; this.Label_HeldItem.Text = "Held Item:"; this.Label_HeldItem.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_HeldItem - // + // this.CB_HeldItem.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_HeldItem.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_HeldItem.FormattingEnabled = true; @@ -698,9 +698,9 @@ private void InitializeComponent() this.CB_HeldItem.TabIndex = 10; this.CB_HeldItem.SelectedIndexChanged += new System.EventHandler(this.ValidateComboBox2); this.CB_HeldItem.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_FriendshipForm - // + // this.FLP_FriendshipForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_FriendshipForm.Controls.Add(this.FLP_FriendshipFormLeft); this.FLP_FriendshipForm.Controls.Add(this.FLP_FriendshipFormRight); @@ -709,9 +709,9 @@ private void InitializeComponent() this.FLP_FriendshipForm.Name = "FLP_FriendshipForm"; this.FLP_FriendshipForm.Size = new System.Drawing.Size(272, 21); this.FLP_FriendshipForm.TabIndex = 6; - // + // // FLP_FriendshipFormLeft - // + // this.FLP_FriendshipFormLeft.Anchor = System.Windows.Forms.AnchorStyles.Right; this.FLP_FriendshipFormLeft.Controls.Add(this.Label_Friendship); this.FLP_FriendshipFormLeft.Controls.Add(this.Label_HatchCounter); @@ -721,9 +721,9 @@ private void InitializeComponent() this.FLP_FriendshipFormLeft.Name = "FLP_FriendshipFormLeft"; this.FLP_FriendshipFormLeft.Size = new System.Drawing.Size(110, 21); this.FLP_FriendshipFormLeft.TabIndex = 0; - // + // // Label_Friendship - // + // this.Label_Friendship.Location = new System.Drawing.Point(0, 0); this.Label_Friendship.Margin = new System.Windows.Forms.Padding(0); this.Label_Friendship.Name = "Label_Friendship"; @@ -732,9 +732,9 @@ private void InitializeComponent() this.Label_Friendship.Text = "Friendship:"; this.Label_Friendship.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_Friendship.Click += new System.EventHandler(this.ClickFriendship); - // + // // Label_HatchCounter - // + // this.Label_HatchCounter.Location = new System.Drawing.Point(0, 21); this.Label_HatchCounter.Margin = new System.Windows.Forms.Padding(0); this.Label_HatchCounter.Name = "Label_HatchCounter"; @@ -742,9 +742,9 @@ private void InitializeComponent() this.Label_HatchCounter.TabIndex = 61; this.Label_HatchCounter.Text = "Hatch Counter:"; this.Label_HatchCounter.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // FLP_FriendshipFormRight - // + // this.FLP_FriendshipFormRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_FriendshipFormRight.Controls.Add(this.TB_Friendship); this.FLP_FriendshipFormRight.Controls.Add(this.Label_Form); @@ -755,9 +755,9 @@ private void InitializeComponent() this.FLP_FriendshipFormRight.Name = "FLP_FriendshipFormRight"; this.FLP_FriendshipFormRight.Size = new System.Drawing.Size(162, 21); this.FLP_FriendshipFormRight.TabIndex = 104; - // + // // TB_Friendship - // + // this.TB_Friendship.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_Friendship.Location = new System.Drawing.Point(0, 0); this.TB_Friendship.Margin = new System.Windows.Forms.Padding(0); @@ -767,9 +767,9 @@ private void InitializeComponent() this.TB_Friendship.TabIndex = 11; this.TB_Friendship.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.TB_Friendship.Validated += new System.EventHandler(this.Update255_MTB); - // + // // Label_Form - // + // this.Label_Form.Anchor = System.Windows.Forms.AnchorStyles.Left; this.Label_Form.AutoSize = true; this.Label_Form.Location = new System.Drawing.Point(22, 4); @@ -779,9 +779,9 @@ private void InitializeComponent() this.Label_Form.TabIndex = 11; this.Label_Form.Text = "Form:"; this.Label_Form.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Form - // + // this.CB_Form.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Form.DropDownWidth = 85; this.CB_Form.Enabled = false; @@ -792,9 +792,9 @@ private void InitializeComponent() this.CB_Form.Size = new System.Drawing.Size(71, 21); this.CB_Form.TabIndex = 12; this.CB_Form.SelectedIndexChanged += new System.EventHandler(this.UpdateForm); - // + // // MT_Form - // + // this.MT_Form.Enabled = false; this.MT_Form.Location = new System.Drawing.Point(126, 0); this.MT_Form.Margin = new System.Windows.Forms.Padding(0); @@ -805,9 +805,9 @@ private void InitializeComponent() this.MT_Form.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.MT_Form.Visible = false; this.MT_Form.Validated += new System.EventHandler(this.UpdateHaXForm); - // + // // FLP_Ability - // + // this.FLP_Ability.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Ability.Controls.Add(this.Label_Ability); this.FLP_Ability.Controls.Add(this.FLP_AbilityRight); @@ -816,9 +816,9 @@ private void InitializeComponent() this.FLP_Ability.Name = "FLP_Ability"; this.FLP_Ability.Size = new System.Drawing.Size(272, 21); this.FLP_Ability.TabIndex = 7; - // + // // Label_Ability - // + // this.Label_Ability.Location = new System.Drawing.Point(0, 0); this.Label_Ability.Margin = new System.Windows.Forms.Padding(0); this.Label_Ability.Name = "Label_Ability"; @@ -826,9 +826,9 @@ private void InitializeComponent() this.Label_Ability.TabIndex = 10; this.Label_Ability.Text = "Ability:"; this.Label_Ability.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // FLP_AbilityRight - // + // this.FLP_AbilityRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_AbilityRight.Controls.Add(this.CB_Ability); this.FLP_AbilityRight.Controls.Add(this.DEV_Ability); @@ -838,9 +838,9 @@ private void InitializeComponent() this.FLP_AbilityRight.Name = "FLP_AbilityRight"; this.FLP_AbilityRight.Size = new System.Drawing.Size(162, 21); this.FLP_AbilityRight.TabIndex = 109; - // + // // CB_Ability - // + // this.CB_Ability.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Ability.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Ability.FormattingEnabled = true; @@ -853,9 +853,9 @@ private void InitializeComponent() this.CB_Ability.TabIndex = 13; this.CB_Ability.SelectedIndexChanged += new System.EventHandler(this.ValidateComboBox2); this.CB_Ability.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // DEV_Ability - // + // this.DEV_Ability.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.DEV_Ability.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.DEV_Ability.Enabled = false; @@ -868,9 +868,9 @@ private void InitializeComponent() this.DEV_Ability.Size = new System.Drawing.Size(126, 21); this.DEV_Ability.TabIndex = 14; this.DEV_Ability.Visible = false; - // + // // TB_AbilityNumber - // + // this.TB_AbilityNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_AbilityNumber.Location = new System.Drawing.Point(126, 21); this.TB_AbilityNumber.Margin = new System.Windows.Forms.Padding(0); @@ -880,9 +880,9 @@ private void InitializeComponent() this.TB_AbilityNumber.TabIndex = 14; this.TB_AbilityNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.TB_AbilityNumber.Visible = false; - // + // // FLP_Language - // + // this.FLP_Language.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Language.Controls.Add(this.Label_Language); this.FLP_Language.Controls.Add(this.CB_Language); @@ -891,9 +891,9 @@ private void InitializeComponent() this.FLP_Language.Name = "FLP_Language"; this.FLP_Language.Size = new System.Drawing.Size(272, 21); this.FLP_Language.TabIndex = 8; - // + // // Label_Language - // + // this.Label_Language.Location = new System.Drawing.Point(0, 0); this.Label_Language.Margin = new System.Windows.Forms.Padding(0); this.Label_Language.Name = "Label_Language"; @@ -901,9 +901,9 @@ private void InitializeComponent() this.Label_Language.TabIndex = 12; this.Label_Language.Text = "Language:"; this.Label_Language.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Language - // + // this.CB_Language.Anchor = System.Windows.Forms.AnchorStyles.Left; this.CB_Language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Language.FormattingEnabled = true; @@ -913,9 +913,9 @@ private void InitializeComponent() this.CB_Language.Size = new System.Drawing.Size(126, 21); this.CB_Language.TabIndex = 15; this.CB_Language.SelectedIndexChanged += new System.EventHandler(this.UpdateNickname); - // + // // FLP_EggPKRS - // + // this.FLP_EggPKRS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_EggPKRS.Controls.Add(this.FLP_EggPKRSLeft); this.FLP_EggPKRS.Controls.Add(this.FLP_EggPKRSRight); @@ -924,9 +924,9 @@ private void InitializeComponent() this.FLP_EggPKRS.Name = "FLP_EggPKRS"; this.FLP_EggPKRS.Size = new System.Drawing.Size(272, 21); this.FLP_EggPKRS.TabIndex = 9; - // + // // FLP_EggPKRSLeft - // + // this.FLP_EggPKRSLeft.Anchor = System.Windows.Forms.AnchorStyles.Right; this.FLP_EggPKRSLeft.Controls.Add(this.CHK_IsEgg); this.FLP_EggPKRSLeft.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; @@ -935,9 +935,9 @@ private void InitializeComponent() this.FLP_EggPKRSLeft.Name = "FLP_EggPKRSLeft"; this.FLP_EggPKRSLeft.Size = new System.Drawing.Size(110, 21); this.FLP_EggPKRSLeft.TabIndex = 0; - // + // // CHK_IsEgg - // + // this.CHK_IsEgg.AutoSize = true; this.CHK_IsEgg.Location = new System.Drawing.Point(54, 3); this.CHK_IsEgg.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -948,9 +948,9 @@ private void InitializeComponent() this.CHK_IsEgg.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_IsEgg.UseVisualStyleBackColor = true; this.CHK_IsEgg.CheckedChanged += new System.EventHandler(this.UpdateIsEgg); - // + // // FLP_EggPKRSRight - // + // this.FLP_EggPKRSRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_EggPKRSRight.Controls.Add(this.CHK_Infected); this.FLP_EggPKRSRight.Controls.Add(this.CHK_Cured); @@ -959,9 +959,9 @@ private void InitializeComponent() this.FLP_EggPKRSRight.Name = "FLP_EggPKRSRight"; this.FLP_EggPKRSRight.Size = new System.Drawing.Size(162, 21); this.FLP_EggPKRSRight.TabIndex = 104; - // + // // CHK_Infected - // + // this.CHK_Infected.AutoSize = true; this.CHK_Infected.Location = new System.Drawing.Point(0, 3); this.CHK_Infected.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -972,9 +972,9 @@ private void InitializeComponent() this.CHK_Infected.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_Infected.UseVisualStyleBackColor = true; this.CHK_Infected.CheckedChanged += new System.EventHandler(this.UpdatePKRSInfected); - // + // // CHK_Cured - // + // this.CHK_Cured.AutoSize = true; this.CHK_Cured.Location = new System.Drawing.Point(65, 3); this.CHK_Cured.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -985,9 +985,9 @@ private void InitializeComponent() this.CHK_Cured.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_Cured.UseVisualStyleBackColor = true; this.CHK_Cured.CheckedChanged += new System.EventHandler(this.UpdatePKRSCured); - // + // // FLP_PKRS - // + // this.FLP_PKRS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_PKRS.Controls.Add(this.Label_PKRS); this.FLP_PKRS.Controls.Add(this.FLP_PKRSRight); @@ -996,9 +996,9 @@ private void InitializeComponent() this.FLP_PKRS.Name = "FLP_PKRS"; this.FLP_PKRS.Size = new System.Drawing.Size(272, 21); this.FLP_PKRS.TabIndex = 10; - // + // // Label_PKRS - // + // this.Label_PKRS.Location = new System.Drawing.Point(0, 0); this.Label_PKRS.Margin = new System.Windows.Forms.Padding(0); this.Label_PKRS.Name = "Label_PKRS"; @@ -1007,9 +1007,9 @@ private void InitializeComponent() this.Label_PKRS.Text = "PkRs:"; this.Label_PKRS.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_PKRS.Visible = false; - // + // // FLP_PKRSRight - // + // this.FLP_PKRSRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_PKRSRight.Controls.Add(this.CB_PKRSStrain); this.FLP_PKRSRight.Controls.Add(this.Label_PKRSdays); @@ -1019,9 +1019,9 @@ private void InitializeComponent() this.FLP_PKRSRight.Name = "FLP_PKRSRight"; this.FLP_PKRSRight.Size = new System.Drawing.Size(162, 21); this.FLP_PKRSRight.TabIndex = 105; - // + // // CB_PKRSStrain - // + // this.CB_PKRSStrain.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PKRSStrain.FormattingEnabled = true; this.CB_PKRSStrain.Items.AddRange(new object[] { @@ -1048,9 +1048,9 @@ private void InitializeComponent() this.CB_PKRSStrain.TabIndex = 19; this.CB_PKRSStrain.Visible = false; this.CB_PKRSStrain.SelectedValueChanged += new System.EventHandler(this.UpdatePKRSstrain); - // + // // Label_PKRSdays - // + // this.Label_PKRSdays.Location = new System.Drawing.Point(43, 0); this.Label_PKRSdays.Margin = new System.Windows.Forms.Padding(0); this.Label_PKRSdays.Name = "Label_PKRSdays"; @@ -1059,9 +1059,9 @@ private void InitializeComponent() this.Label_PKRSdays.Text = "d:"; this.Label_PKRSdays.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_PKRSdays.Visible = false; - // + // // CB_PKRSDays - // + // this.CB_PKRSDays.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PKRSDays.FormattingEnabled = true; this.CB_PKRSDays.Location = new System.Drawing.Point(68, 0); @@ -1071,9 +1071,9 @@ private void InitializeComponent() this.CB_PKRSDays.TabIndex = 20; this.CB_PKRSDays.Visible = false; this.CB_PKRSDays.SelectedIndexChanged += new System.EventHandler(this.UpdatePKRSdays); - // + // // FLP_Country - // + // this.FLP_Country.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Country.Controls.Add(this.Label_Country); this.FLP_Country.Controls.Add(this.CB_Country); @@ -1082,9 +1082,9 @@ private void InitializeComponent() this.FLP_Country.Name = "FLP_Country"; this.FLP_Country.Size = new System.Drawing.Size(272, 21); this.FLP_Country.TabIndex = 107; - // + // // Label_Country - // + // this.Label_Country.Location = new System.Drawing.Point(0, 0); this.Label_Country.Margin = new System.Windows.Forms.Padding(0); this.Label_Country.Name = "Label_Country"; @@ -1092,9 +1092,9 @@ private void InitializeComponent() this.Label_Country.TabIndex = 16; this.Label_Country.Text = "Country:"; this.Label_Country.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Country - // + // this.CB_Country.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Country.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Country.DropDownWidth = 180; @@ -1106,9 +1106,9 @@ private void InitializeComponent() this.CB_Country.TabIndex = 21; this.CB_Country.SelectedIndexChanged += new System.EventHandler(this.UpdateCountry); this.CB_Country.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_SubRegion - // + // this.FLP_SubRegion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_SubRegion.Controls.Add(this.Label_SubRegion); this.FLP_SubRegion.Controls.Add(this.CB_SubRegion); @@ -1117,9 +1117,9 @@ private void InitializeComponent() this.FLP_SubRegion.Name = "FLP_SubRegion"; this.FLP_SubRegion.Size = new System.Drawing.Size(272, 21); this.FLP_SubRegion.TabIndex = 110; - // + // // Label_SubRegion - // + // this.Label_SubRegion.Location = new System.Drawing.Point(0, 0); this.Label_SubRegion.Margin = new System.Windows.Forms.Padding(0); this.Label_SubRegion.Name = "Label_SubRegion"; @@ -1127,9 +1127,9 @@ private void InitializeComponent() this.Label_SubRegion.TabIndex = 17; this.Label_SubRegion.Text = "Sub Region:"; this.Label_SubRegion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_SubRegion - // + // this.CB_SubRegion.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_SubRegion.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_SubRegion.DropDownWidth = 180; @@ -1140,9 +1140,9 @@ private void InitializeComponent() this.CB_SubRegion.Size = new System.Drawing.Size(126, 21); this.CB_SubRegion.TabIndex = 22; this.CB_SubRegion.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_3DSRegion - // + // this.FLP_3DSRegion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_3DSRegion.Controls.Add(this.Label_3DSRegion); this.FLP_3DSRegion.Controls.Add(this.CB_3DSReg); @@ -1151,9 +1151,9 @@ private void InitializeComponent() this.FLP_3DSRegion.Name = "FLP_3DSRegion"; this.FLP_3DSRegion.Size = new System.Drawing.Size(272, 21); this.FLP_3DSRegion.TabIndex = 111; - // + // // Label_3DSRegion - // + // this.Label_3DSRegion.Location = new System.Drawing.Point(0, 0); this.Label_3DSRegion.Margin = new System.Windows.Forms.Padding(0); this.Label_3DSRegion.Name = "Label_3DSRegion"; @@ -1161,9 +1161,9 @@ private void InitializeComponent() this.Label_3DSRegion.TabIndex = 18; this.Label_3DSRegion.Text = "3DS Region:"; this.Label_3DSRegion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_3DSReg - // + // this.CB_3DSReg.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_3DSReg.FormattingEnabled = true; this.CB_3DSReg.Location = new System.Drawing.Point(110, 0); @@ -1171,9 +1171,9 @@ private void InitializeComponent() this.CB_3DSReg.Name = "CB_3DSReg"; this.CB_3DSReg.Size = new System.Drawing.Size(126, 21); this.CB_3DSReg.TabIndex = 23; - // + // // FLP_NSparkle - // + // this.FLP_NSparkle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_NSparkle.Controls.Add(this.L_NSparkle); this.FLP_NSparkle.Controls.Add(this.CHK_NSparkle); @@ -1182,9 +1182,9 @@ private void InitializeComponent() this.FLP_NSparkle.Name = "FLP_NSparkle"; this.FLP_NSparkle.Size = new System.Drawing.Size(272, 21); this.FLP_NSparkle.TabIndex = 112; - // + // // L_NSparkle - // + // this.L_NSparkle.Location = new System.Drawing.Point(0, 0); this.L_NSparkle.Margin = new System.Windows.Forms.Padding(0); this.L_NSparkle.Name = "L_NSparkle"; @@ -1192,9 +1192,9 @@ private void InitializeComponent() this.L_NSparkle.TabIndex = 17; this.L_NSparkle.Text = "N\'s Sparkle:"; this.L_NSparkle.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CHK_NSparkle - // + // this.CHK_NSparkle.AutoSize = true; this.CHK_NSparkle.Location = new System.Drawing.Point(110, 3); this.CHK_NSparkle.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -1204,9 +1204,9 @@ private void InitializeComponent() this.CHK_NSparkle.Text = "Active"; this.CHK_NSparkle.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_NSparkle.UseVisualStyleBackColor = true; - // + // // FLP_ShadowID - // + // this.FLP_ShadowID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_ShadowID.Controls.Add(this.L_ShadowID); this.FLP_ShadowID.Controls.Add(this.NUD_ShadowID); @@ -1215,9 +1215,9 @@ private void InitializeComponent() this.FLP_ShadowID.Name = "FLP_ShadowID"; this.FLP_ShadowID.Size = new System.Drawing.Size(272, 21); this.FLP_ShadowID.TabIndex = 114; - // + // // L_ShadowID - // + // this.L_ShadowID.Location = new System.Drawing.Point(0, 0); this.L_ShadowID.Margin = new System.Windows.Forms.Padding(0); this.L_ShadowID.Name = "L_ShadowID"; @@ -1225,9 +1225,9 @@ private void InitializeComponent() this.L_ShadowID.TabIndex = 9; this.L_ShadowID.Text = "Shadow ID:"; this.L_ShadowID.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_ShadowID - // + // this.NUD_ShadowID.Location = new System.Drawing.Point(110, 1); this.NUD_ShadowID.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0); this.NUD_ShadowID.Maximum = new decimal(new int[] { @@ -1239,9 +1239,9 @@ private void InitializeComponent() this.NUD_ShadowID.Size = new System.Drawing.Size(51, 20); this.NUD_ShadowID.TabIndex = 103; this.NUD_ShadowID.ValueChanged += new System.EventHandler(this.UpdateShadowID); - // + // // FLP_Purification - // + // this.FLP_Purification.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Purification.Controls.Add(this.L_HeartGauge); this.FLP_Purification.Controls.Add(this.NUD_Purification); @@ -1251,9 +1251,9 @@ private void InitializeComponent() this.FLP_Purification.Name = "FLP_Purification"; this.FLP_Purification.Size = new System.Drawing.Size(272, 21); this.FLP_Purification.TabIndex = 113; - // + // // L_HeartGauge - // + // this.L_HeartGauge.Location = new System.Drawing.Point(0, 0); this.L_HeartGauge.Margin = new System.Windows.Forms.Padding(0); this.L_HeartGauge.Name = "L_HeartGauge"; @@ -1261,9 +1261,9 @@ private void InitializeComponent() this.L_HeartGauge.TabIndex = 9; this.L_HeartGauge.Text = "Heart Gauge:"; this.L_HeartGauge.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_Purification - // + // this.NUD_Purification.Location = new System.Drawing.Point(110, 1); this.NUD_Purification.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0); this.NUD_Purification.Maximum = new decimal(new int[] { @@ -1280,9 +1280,9 @@ private void InitializeComponent() this.NUD_Purification.Size = new System.Drawing.Size(51, 20); this.NUD_Purification.TabIndex = 103; this.NUD_Purification.ValueChanged += new System.EventHandler(this.UpdatePurification); - // + // // CHK_Shadow - // + // this.CHK_Shadow.AutoSize = true; this.CHK_Shadow.Location = new System.Drawing.Point(161, 3); this.CHK_Shadow.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -1293,9 +1293,9 @@ private void InitializeComponent() this.CHK_Shadow.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.CHK_Shadow.UseVisualStyleBackColor = true; this.CHK_Shadow.CheckedChanged += new System.EventHandler(this.UpdateShadowCHK); - // + // // FLP_ShinyLeaf - // + // this.FLP_ShinyLeaf.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_ShinyLeaf.Controls.Add(this.L_ShinyLeaf); this.FLP_ShinyLeaf.Controls.Add(this.ShinyLeaf); @@ -1304,9 +1304,9 @@ private void InitializeComponent() this.FLP_ShinyLeaf.Name = "FLP_ShinyLeaf"; this.FLP_ShinyLeaf.Size = new System.Drawing.Size(272, 56); this.FLP_ShinyLeaf.TabIndex = 115; - // + // // L_ShinyLeaf - // + // this.L_ShinyLeaf.Location = new System.Drawing.Point(0, 0); this.L_ShinyLeaf.Margin = new System.Windows.Forms.Padding(0); this.L_ShinyLeaf.Name = "L_ShinyLeaf"; @@ -1315,9 +1315,18 @@ private void InitializeComponent() this.L_ShinyLeaf.Text = "Shiny Leaf:"; this.L_ShinyLeaf.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.L_ShinyLeaf.Click += new System.EventHandler(this.ClickShinyLeaf); - // + // + // ShinyLeaf + // + this.ShinyLeaf.Location = new System.Drawing.Point(110, 0); + this.ShinyLeaf.Margin = new System.Windows.Forms.Padding(0); + this.ShinyLeaf.Name = "ShinyLeaf"; + this.ShinyLeaf.Size = new System.Drawing.Size(140, 56); + this.ShinyLeaf.TabIndex = 116; + this.ShinyLeaf.Value = 0; + // // Tab_Met - // + // this.Tab_Met.AllowDrop = true; this.Tab_Met.Controls.Add(this.CHK_AsEgg); this.Tab_Met.Controls.Add(this.GB_EggConditions); @@ -1325,13 +1334,13 @@ private void InitializeComponent() this.Tab_Met.Location = new System.Drawing.Point(4, 22); this.Tab_Met.Name = "Tab_Met"; this.Tab_Met.Padding = new System.Windows.Forms.Padding(3); - this.Tab_Met.Size = new System.Drawing.Size(272, 462); + this.Tab_Met.Size = new System.Drawing.Size(192, 74); this.Tab_Met.TabIndex = 1; this.Tab_Met.Text = "Met"; this.Tab_Met.UseVisualStyleBackColor = true; - // + // // CHK_AsEgg - // + // this.CHK_AsEgg.AutoSize = true; this.CHK_AsEgg.Location = new System.Drawing.Point(110, 204); this.CHK_AsEgg.Name = "CHK_AsEgg"; @@ -1340,9 +1349,9 @@ private void InitializeComponent() this.CHK_AsEgg.Text = "As Egg"; this.CHK_AsEgg.UseVisualStyleBackColor = true; this.CHK_AsEgg.Click += new System.EventHandler(this.UpdateMetAsEgg); - // + // // GB_EggConditions - // + // this.GB_EggConditions.Controls.Add(this.CB_EggLocation); this.GB_EggConditions.Controls.Add(this.CAL_EggDate); this.GB_EggConditions.Controls.Add(this.Label_EggDate); @@ -1354,9 +1363,9 @@ private void InitializeComponent() this.GB_EggConditions.TabIndex = 9; this.GB_EggConditions.TabStop = false; this.GB_EggConditions.Text = "Egg Met Conditions"; - // + // // CB_EggLocation - // + // this.CB_EggLocation.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_EggLocation.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_EggLocation.DropDownWidth = 150; @@ -1367,9 +1376,9 @@ private void InitializeComponent() this.CB_EggLocation.TabIndex = 10; this.CB_EggLocation.SelectedIndexChanged += new System.EventHandler(this.ValidateLocation); this.CB_EggLocation.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CAL_EggDate - // + // this.CAL_EggDate.CustomFormat = "MM/dd/yyyy"; this.CAL_EggDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.CAL_EggDate.Location = new System.Drawing.Point(71, 40); @@ -1379,27 +1388,27 @@ private void InitializeComponent() this.CAL_EggDate.Size = new System.Drawing.Size(122, 20); this.CAL_EggDate.TabIndex = 11; this.CAL_EggDate.Value = new System.DateTime(2000, 1, 1, 0, 0, 0, 0); - // + // // Label_EggDate - // + // this.Label_EggDate.Location = new System.Drawing.Point(5, 44); this.Label_EggDate.Name = "Label_EggDate"; this.Label_EggDate.Size = new System.Drawing.Size(63, 13); this.Label_EggDate.TabIndex = 8; this.Label_EggDate.Text = "Date:"; this.Label_EggDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // Label_EggLocation - // + // this.Label_EggLocation.Location = new System.Drawing.Point(5, 24); this.Label_EggLocation.Name = "Label_EggLocation"; this.Label_EggLocation.Size = new System.Drawing.Size(63, 13); this.Label_EggLocation.TabIndex = 6; this.Label_EggLocation.Text = "Location:"; this.Label_EggLocation.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // FLP_Met - // + // this.FLP_Met.Controls.Add(this.FLP_OriginGame); this.FLP_Met.Controls.Add(this.FLP_MetLocation); this.FLP_Met.Controls.Add(this.FLP_Ball); @@ -1412,9 +1421,9 @@ private void InitializeComponent() this.FLP_Met.Name = "FLP_Met"; this.FLP_Met.Size = new System.Drawing.Size(272, 175); this.FLP_Met.TabIndex = 103; - // + // // FLP_OriginGame - // + // this.FLP_OriginGame.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_OriginGame.Controls.Add(this.Label_OriginGame); this.FLP_OriginGame.Controls.Add(this.CB_GameOrigin); @@ -1423,9 +1432,9 @@ private void InitializeComponent() this.FLP_OriginGame.Name = "FLP_OriginGame"; this.FLP_OriginGame.Size = new System.Drawing.Size(272, 21); this.FLP_OriginGame.TabIndex = 112; - // + // // Label_OriginGame - // + // this.Label_OriginGame.Location = new System.Drawing.Point(0, 0); this.Label_OriginGame.Margin = new System.Windows.Forms.Padding(0); this.Label_OriginGame.Name = "Label_OriginGame"; @@ -1433,9 +1442,9 @@ private void InitializeComponent() this.Label_OriginGame.TabIndex = 0; this.Label_OriginGame.Text = "Origin Game:"; this.Label_OriginGame.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_GameOrigin - // + // this.CB_GameOrigin.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_GameOrigin.FormattingEnabled = true; this.CB_GameOrigin.Location = new System.Drawing.Point(110, 0); @@ -1444,9 +1453,9 @@ private void InitializeComponent() this.CB_GameOrigin.Size = new System.Drawing.Size(126, 21); this.CB_GameOrigin.TabIndex = 1; this.CB_GameOrigin.SelectedIndexChanged += new System.EventHandler(this.UpdateOriginGame); - // + // // FLP_MetLocation - // + // this.FLP_MetLocation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_MetLocation.Controls.Add(this.Label_MetLocation); this.FLP_MetLocation.Controls.Add(this.CB_MetLocation); @@ -1455,9 +1464,9 @@ private void InitializeComponent() this.FLP_MetLocation.Name = "FLP_MetLocation"; this.FLP_MetLocation.Size = new System.Drawing.Size(272, 21); this.FLP_MetLocation.TabIndex = 113; - // + // // Label_MetLocation - // + // this.Label_MetLocation.Location = new System.Drawing.Point(0, 0); this.Label_MetLocation.Margin = new System.Windows.Forms.Padding(0); this.Label_MetLocation.Name = "Label_MetLocation"; @@ -1466,9 +1475,9 @@ private void InitializeComponent() this.Label_MetLocation.Text = "Met Location:"; this.Label_MetLocation.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_MetLocation.Click += new System.EventHandler(this.ClickMetLocation); - // + // // CB_MetLocation - // + // this.CB_MetLocation.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_MetLocation.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_MetLocation.DropDownWidth = 150; @@ -1480,9 +1489,9 @@ private void InitializeComponent() this.CB_MetLocation.TabIndex = 2; this.CB_MetLocation.SelectedIndexChanged += new System.EventHandler(this.ValidateLocation); this.CB_MetLocation.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_Ball - // + // this.FLP_Ball.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Ball.Controls.Add(this.FLP_BallLeft); this.FLP_Ball.Controls.Add(this.CB_Ball); @@ -1491,9 +1500,9 @@ private void InitializeComponent() this.FLP_Ball.Name = "FLP_Ball"; this.FLP_Ball.Size = new System.Drawing.Size(272, 21); this.FLP_Ball.TabIndex = 114; - // + // // FLP_BallLeft - // + // this.FLP_BallLeft.Anchor = System.Windows.Forms.AnchorStyles.Right; this.FLP_BallLeft.Controls.Add(this.Label_Ball); this.FLP_BallLeft.Controls.Add(this.PB_Ball); @@ -1504,9 +1513,9 @@ private void InitializeComponent() this.FLP_BallLeft.Size = new System.Drawing.Size(110, 21); this.FLP_BallLeft.TabIndex = 4; this.FLP_BallLeft.Click += new System.EventHandler(this.ClickBall); - // + // // Label_Ball - // + // this.Label_Ball.Anchor = System.Windows.Forms.AnchorStyles.Right; this.Label_Ball.AutoSize = true; this.Label_Ball.Location = new System.Drawing.Point(83, 0); @@ -1518,9 +1527,9 @@ private void InitializeComponent() this.Label_Ball.Text = "Ball:"; this.Label_Ball.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_Ball.Click += new System.EventHandler(this.ClickBall); - // + // // PB_Ball - // + // this.PB_Ball.Location = new System.Drawing.Point(60, 0); this.PB_Ball.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); this.PB_Ball.Name = "PB_Ball"; @@ -1528,9 +1537,9 @@ private void InitializeComponent() this.PB_Ball.TabIndex = 3; this.PB_Ball.TabStop = false; this.PB_Ball.Click += new System.EventHandler(this.ClickBall); - // + // // CB_Ball - // + // this.CB_Ball.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Ball.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Ball.FormattingEnabled = true; @@ -1542,9 +1551,9 @@ private void InitializeComponent() this.CB_Ball.SelectedIndexChanged += new System.EventHandler(this.ValidateComboBox2); this.CB_Ball.SelectedValueChanged += new System.EventHandler(this.UpdateBall); this.CB_Ball.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // FLP_MetLevel - // + // this.FLP_MetLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_MetLevel.Controls.Add(this.Label_MetLevel); this.FLP_MetLevel.Controls.Add(this.TB_MetLevel); @@ -1553,9 +1562,9 @@ private void InitializeComponent() this.FLP_MetLevel.Name = "FLP_MetLevel"; this.FLP_MetLevel.Size = new System.Drawing.Size(272, 21); this.FLP_MetLevel.TabIndex = 115; - // + // // Label_MetLevel - // + // this.Label_MetLevel.Location = new System.Drawing.Point(0, 0); this.Label_MetLevel.Margin = new System.Windows.Forms.Padding(0); this.Label_MetLevel.Name = "Label_MetLevel"; @@ -1563,9 +1572,9 @@ private void InitializeComponent() this.Label_MetLevel.TabIndex = 3; this.Label_MetLevel.Text = "Met Level:"; this.Label_MetLevel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // TB_MetLevel - // + // this.TB_MetLevel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_MetLevel.Location = new System.Drawing.Point(110, 0); this.TB_MetLevel.Margin = new System.Windows.Forms.Padding(0); @@ -1574,9 +1583,9 @@ private void InitializeComponent() this.TB_MetLevel.Size = new System.Drawing.Size(126, 20); this.TB_MetLevel.TabIndex = 4; this.TB_MetLevel.Validated += new System.EventHandler(this.Update255_MTB); - // + // // FLP_MetDate - // + // this.FLP_MetDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_MetDate.Controls.Add(this.Label_MetDate); this.FLP_MetDate.Controls.Add(this.CAL_MetDate); @@ -1585,9 +1594,9 @@ private void InitializeComponent() this.FLP_MetDate.Name = "FLP_MetDate"; this.FLP_MetDate.Size = new System.Drawing.Size(272, 21); this.FLP_MetDate.TabIndex = 116; - // + // // Label_MetDate - // + // this.Label_MetDate.Location = new System.Drawing.Point(0, 0); this.Label_MetDate.Margin = new System.Windows.Forms.Padding(0); this.Label_MetDate.Name = "Label_MetDate"; @@ -1595,9 +1604,9 @@ private void InitializeComponent() this.Label_MetDate.TabIndex = 4; this.Label_MetDate.Text = "Met Date:"; this.Label_MetDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CAL_MetDate - // + // this.CAL_MetDate.CustomFormat = "MM/dd/yyyy"; this.CAL_MetDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.CAL_MetDate.Location = new System.Drawing.Point(110, 0); @@ -1608,9 +1617,9 @@ private void InitializeComponent() this.CAL_MetDate.Size = new System.Drawing.Size(126, 20); this.CAL_MetDate.TabIndex = 5; this.CAL_MetDate.Value = new System.DateTime(2000, 1, 1, 0, 0, 0, 0); - // + // // FLP_Fateful - // + // this.FLP_Fateful.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_Fateful.Controls.Add(this.PAN_Fateful); this.FLP_Fateful.Controls.Add(this.CHK_Fateful); @@ -1619,17 +1628,17 @@ private void InitializeComponent() this.FLP_Fateful.Name = "FLP_Fateful"; this.FLP_Fateful.Size = new System.Drawing.Size(272, 21); this.FLP_Fateful.TabIndex = 117; - // + // // PAN_Fateful - // + // this.PAN_Fateful.Location = new System.Drawing.Point(0, 0); this.PAN_Fateful.Margin = new System.Windows.Forms.Padding(0); this.PAN_Fateful.Name = "PAN_Fateful"; this.PAN_Fateful.Size = new System.Drawing.Size(110, 21); this.PAN_Fateful.TabIndex = 104; - // + // // CHK_Fateful - // + // this.CHK_Fateful.AutoSize = true; this.CHK_Fateful.Location = new System.Drawing.Point(110, 3); this.CHK_Fateful.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); @@ -1638,9 +1647,9 @@ private void InitializeComponent() this.CHK_Fateful.TabIndex = 6; this.CHK_Fateful.Text = "Fateful Encounter"; this.CHK_Fateful.UseVisualStyleBackColor = true; - // + // // FLP_EncounterType - // + // this.FLP_EncounterType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_EncounterType.Controls.Add(this.Label_EncounterType); this.FLP_EncounterType.Controls.Add(this.CB_EncounterType); @@ -1649,9 +1658,9 @@ private void InitializeComponent() this.FLP_EncounterType.Name = "FLP_EncounterType"; this.FLP_EncounterType.Size = new System.Drawing.Size(272, 21); this.FLP_EncounterType.TabIndex = 118; - // + // // Label_EncounterType - // + // this.Label_EncounterType.Location = new System.Drawing.Point(0, 0); this.Label_EncounterType.Margin = new System.Windows.Forms.Padding(0); this.Label_EncounterType.Name = "Label_EncounterType"; @@ -1659,9 +1668,9 @@ private void InitializeComponent() this.Label_EncounterType.TabIndex = 5; this.Label_EncounterType.Text = "Encounter:"; this.Label_EncounterType.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_EncounterType - // + // this.CB_EncounterType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_EncounterType.DropDownWidth = 160; this.CB_EncounterType.FormattingEnabled = true; @@ -1670,9 +1679,9 @@ private void InitializeComponent() this.CB_EncounterType.Name = "CB_EncounterType"; this.CB_EncounterType.Size = new System.Drawing.Size(126, 21); this.CB_EncounterType.TabIndex = 7; - // + // // FLP_TimeOfDay - // + // this.FLP_TimeOfDay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.FLP_TimeOfDay.Controls.Add(this.L_MetTimeOfDay); this.FLP_TimeOfDay.Controls.Add(this.CB_MetTimeOfDay); @@ -1681,9 +1690,9 @@ private void InitializeComponent() this.FLP_TimeOfDay.Name = "FLP_TimeOfDay"; this.FLP_TimeOfDay.Size = new System.Drawing.Size(272, 21); this.FLP_TimeOfDay.TabIndex = 119; - // + // // L_MetTimeOfDay - // + // this.L_MetTimeOfDay.Location = new System.Drawing.Point(0, 0); this.L_MetTimeOfDay.Margin = new System.Windows.Forms.Padding(0); this.L_MetTimeOfDay.Name = "L_MetTimeOfDay"; @@ -1691,9 +1700,9 @@ private void InitializeComponent() this.L_MetTimeOfDay.TabIndex = 10; this.L_MetTimeOfDay.Text = "Time of Day:"; this.L_MetTimeOfDay.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_MetTimeOfDay - // + // this.CB_MetTimeOfDay.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_MetTimeOfDay.DropDownWidth = 150; this.CB_MetTimeOfDay.FormattingEnabled = true; @@ -1707,22 +1716,49 @@ private void InitializeComponent() this.CB_MetTimeOfDay.Name = "CB_MetTimeOfDay"; this.CB_MetTimeOfDay.Size = new System.Drawing.Size(126, 21); this.CB_MetTimeOfDay.TabIndex = 11; - // + // // Tab_Stats - // + // this.Tab_Stats.AllowDrop = true; this.Tab_Stats.Controls.Add(this.Stats); this.Tab_Stats.Controls.Add(this.Contest); this.Tab_Stats.Location = new System.Drawing.Point(4, 22); this.Tab_Stats.Name = "Tab_Stats"; this.Tab_Stats.Padding = new System.Windows.Forms.Padding(3); - this.Tab_Stats.Size = new System.Drawing.Size(272, 462); + this.Tab_Stats.Size = new System.Drawing.Size(192, 74); this.Tab_Stats.TabIndex = 2; this.Tab_Stats.Text = "Stats"; this.Tab_Stats.UseVisualStyleBackColor = true; - // + // + // Stats + // + this.Stats.EVsFishy = System.Drawing.Color.LightYellow; + this.Stats.EVsInvalid = System.Drawing.Color.Red; + this.Stats.EVsMaxed = System.Drawing.Color.Honeydew; + this.Stats.Location = new System.Drawing.Point(0, 0); + this.Stats.Name = "Stats"; + this.Stats.Size = new System.Drawing.Size(270, 240); + this.Stats.StatDecreased = System.Drawing.Color.Blue; + this.Stats.StatHyperTrained = System.Drawing.Color.LightGreen; + this.Stats.StatIncreased = System.Drawing.Color.Red; + this.Stats.TabIndex = 118; + // + // Contest + // + this.Contest.CNT_Beauty = 0; + this.Contest.CNT_Cool = 0; + this.Contest.CNT_Cute = 0; + this.Contest.CNT_Sheen = 0; + this.Contest.CNT_Smart = 0; + this.Contest.CNT_Tough = 0; + this.Contest.Location = new System.Drawing.Point(21, 247); + this.Contest.Margin = new System.Windows.Forms.Padding(0); + this.Contest.Name = "Contest"; + this.Contest.Size = new System.Drawing.Size(230, 50); + this.Contest.TabIndex = 117; + // // Tab_Attacks - // + // this.Tab_Attacks.AllowDrop = true; this.Tab_Attacks.Controls.Add(this.PB_WarnMove4); this.Tab_Attacks.Controls.Add(this.PB_WarnMove3); @@ -1737,9 +1773,9 @@ private void InitializeComponent() this.Tab_Attacks.TabIndex = 3; this.Tab_Attacks.Text = "Attacks"; this.Tab_Attacks.UseVisualStyleBackColor = true; - // + // // PB_WarnMove4 - // + // this.PB_WarnMove4.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnMove4.Image"))); this.PB_WarnMove4.Location = new System.Drawing.Point(8, 113); this.PB_WarnMove4.Name = "PB_WarnMove4"; @@ -1747,9 +1783,9 @@ private void InitializeComponent() this.PB_WarnMove4.TabIndex = 5; this.PB_WarnMove4.TabStop = false; this.PB_WarnMove4.Visible = false; - // + // // PB_WarnMove3 - // + // this.PB_WarnMove3.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnMove3.Image"))); this.PB_WarnMove3.Location = new System.Drawing.Point(8, 91); this.PB_WarnMove3.Name = "PB_WarnMove3"; @@ -1757,9 +1793,9 @@ private void InitializeComponent() this.PB_WarnMove3.TabIndex = 4; this.PB_WarnMove3.TabStop = false; this.PB_WarnMove3.Visible = false; - // + // // PB_WarnMove2 - // + // this.PB_WarnMove2.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnMove2.Image"))); this.PB_WarnMove2.Location = new System.Drawing.Point(8, 69); this.PB_WarnMove2.Name = "PB_WarnMove2"; @@ -1767,9 +1803,9 @@ private void InitializeComponent() this.PB_WarnMove2.TabIndex = 3; this.PB_WarnMove2.TabStop = false; this.PB_WarnMove2.Visible = false; - // + // // PB_WarnMove1 - // + // this.PB_WarnMove1.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnMove1.Image"))); this.PB_WarnMove1.Location = new System.Drawing.Point(8, 47); this.PB_WarnMove1.Name = "PB_WarnMove1"; @@ -1777,9 +1813,9 @@ private void InitializeComponent() this.PB_WarnMove1.TabIndex = 2; this.PB_WarnMove1.TabStop = false; this.PB_WarnMove1.Visible = false; - // + // // GB_RelearnMoves - // + // this.GB_RelearnMoves.Controls.Add(this.PB_WarnRelearn4); this.GB_RelearnMoves.Controls.Add(this.PB_WarnRelearn3); this.GB_RelearnMoves.Controls.Add(this.PB_WarnRelearn2); @@ -1794,9 +1830,9 @@ private void InitializeComponent() this.GB_RelearnMoves.TabIndex = 1; this.GB_RelearnMoves.TabStop = false; this.GB_RelearnMoves.Text = "Relearn Moves"; - // + // // PB_WarnRelearn4 - // + // this.PB_WarnRelearn4.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnRelearn4.Image"))); this.PB_WarnRelearn4.Location = new System.Drawing.Point(22, 93); this.PB_WarnRelearn4.Name = "PB_WarnRelearn4"; @@ -1804,9 +1840,9 @@ private void InitializeComponent() this.PB_WarnRelearn4.TabIndex = 19; this.PB_WarnRelearn4.TabStop = false; this.PB_WarnRelearn4.Visible = false; - // + // // PB_WarnRelearn3 - // + // this.PB_WarnRelearn3.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnRelearn3.Image"))); this.PB_WarnRelearn3.Location = new System.Drawing.Point(22, 71); this.PB_WarnRelearn3.Name = "PB_WarnRelearn3"; @@ -1814,9 +1850,9 @@ private void InitializeComponent() this.PB_WarnRelearn3.TabIndex = 18; this.PB_WarnRelearn3.TabStop = false; this.PB_WarnRelearn3.Visible = false; - // + // // PB_WarnRelearn2 - // + // this.PB_WarnRelearn2.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnRelearn2.Image"))); this.PB_WarnRelearn2.Location = new System.Drawing.Point(22, 49); this.PB_WarnRelearn2.Name = "PB_WarnRelearn2"; @@ -1824,9 +1860,9 @@ private void InitializeComponent() this.PB_WarnRelearn2.TabIndex = 17; this.PB_WarnRelearn2.TabStop = false; this.PB_WarnRelearn2.Visible = false; - // + // // PB_WarnRelearn1 - // + // this.PB_WarnRelearn1.Image = ((System.Drawing.Image)(resources.GetObject("PB_WarnRelearn1.Image"))); this.PB_WarnRelearn1.Location = new System.Drawing.Point(22, 27); this.PB_WarnRelearn1.Name = "PB_WarnRelearn1"; @@ -1834,9 +1870,9 @@ private void InitializeComponent() this.PB_WarnRelearn1.TabIndex = 6; this.PB_WarnRelearn1.TabStop = false; this.PB_WarnRelearn1.Visible = false; - // + // // CB_RelearnMove4 - // + // this.CB_RelearnMove4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_RelearnMove4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_RelearnMove4.FormattingEnabled = true; @@ -1847,9 +1883,9 @@ private void InitializeComponent() this.CB_RelearnMove4.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_RelearnMove4.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_RelearnMove4.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_RelearnMove3 - // + // this.CB_RelearnMove3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_RelearnMove3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_RelearnMove3.FormattingEnabled = true; @@ -1860,9 +1896,9 @@ private void InitializeComponent() this.CB_RelearnMove3.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_RelearnMove3.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_RelearnMove3.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_RelearnMove2 - // + // this.CB_RelearnMove2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_RelearnMove2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_RelearnMove2.FormattingEnabled = true; @@ -1873,9 +1909,9 @@ private void InitializeComponent() this.CB_RelearnMove2.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_RelearnMove2.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_RelearnMove2.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_RelearnMove1 - // + // this.CB_RelearnMove1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_RelearnMove1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_RelearnMove1.FormattingEnabled = true; @@ -1886,9 +1922,9 @@ private void InitializeComponent() this.CB_RelearnMove1.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_RelearnMove1.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_RelearnMove1.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // GB_CurrentMoves - // + // this.GB_CurrentMoves.Controls.Add(this.TB_PP4); this.GB_CurrentMoves.Controls.Add(this.TB_PP3); this.GB_CurrentMoves.Controls.Add(this.TB_PP2); @@ -1909,9 +1945,9 @@ private void InitializeComponent() this.GB_CurrentMoves.TabIndex = 0; this.GB_CurrentMoves.TabStop = false; this.GB_CurrentMoves.Text = "Current Moves"; - // + // // TB_PP4 - // + // this.TB_PP4.Location = new System.Drawing.Point(135, 93); this.TB_PP4.Mask = "000"; this.TB_PP4.Name = "TB_PP4"; @@ -1919,9 +1955,9 @@ private void InitializeComponent() this.TB_PP4.Size = new System.Drawing.Size(31, 20); this.TB_PP4.TabIndex = 16; this.TB_PP4.Validated += new System.EventHandler(this.Update255_MTB); - // + // // TB_PP3 - // + // this.TB_PP3.Location = new System.Drawing.Point(135, 71); this.TB_PP3.Mask = "000"; this.TB_PP3.Name = "TB_PP3"; @@ -1929,9 +1965,9 @@ private void InitializeComponent() this.TB_PP3.Size = new System.Drawing.Size(31, 20); this.TB_PP3.TabIndex = 15; this.TB_PP3.Validated += new System.EventHandler(this.Update255_MTB); - // + // // TB_PP2 - // + // this.TB_PP2.Location = new System.Drawing.Point(135, 49); this.TB_PP2.Mask = "000"; this.TB_PP2.Name = "TB_PP2"; @@ -1939,9 +1975,9 @@ private void InitializeComponent() this.TB_PP2.Size = new System.Drawing.Size(31, 20); this.TB_PP2.TabIndex = 14; this.TB_PP2.Validated += new System.EventHandler(this.Update255_MTB); - // + // // TB_PP1 - // + // this.TB_PP1.Location = new System.Drawing.Point(135, 27); this.TB_PP1.Mask = "000"; this.TB_PP1.Name = "TB_PP1"; @@ -1949,18 +1985,18 @@ private void InitializeComponent() this.TB_PP1.Size = new System.Drawing.Size(31, 20); this.TB_PP1.TabIndex = 13; this.TB_PP1.Validated += new System.EventHandler(this.Update255_MTB); - // + // // Label_CurPP - // + // this.Label_CurPP.Location = new System.Drawing.Point(133, 12); this.Label_CurPP.Name = "Label_CurPP"; this.Label_CurPP.Size = new System.Drawing.Size(35, 13); this.Label_CurPP.TabIndex = 2; this.Label_CurPP.Text = "PP"; this.Label_CurPP.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // + // // Label_PPups - // + // this.Label_PPups.Location = new System.Drawing.Point(169, 12); this.Label_PPups.Name = "Label_PPups"; this.Label_PPups.Size = new System.Drawing.Size(45, 13); @@ -1968,9 +2004,9 @@ private void InitializeComponent() this.Label_PPups.Text = "PP Ups"; this.Label_PPups.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.Label_PPups.Click += new System.EventHandler(this.ClickPPUps); - // + // // CB_PPu4 - // + // this.CB_PPu4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PPu4.FormattingEnabled = true; this.CB_PPu4.Items.AddRange(new object[] { @@ -1983,9 +2019,9 @@ private void InitializeComponent() this.CB_PPu4.Size = new System.Drawing.Size(38, 21); this.CB_PPu4.TabIndex = 12; this.CB_PPu4.SelectedIndexChanged += new System.EventHandler(this.UpdatePP); - // + // // CB_PPu3 - // + // this.CB_PPu3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PPu3.FormattingEnabled = true; this.CB_PPu3.Items.AddRange(new object[] { @@ -1998,9 +2034,9 @@ private void InitializeComponent() this.CB_PPu3.Size = new System.Drawing.Size(38, 21); this.CB_PPu3.TabIndex = 9; this.CB_PPu3.SelectedIndexChanged += new System.EventHandler(this.UpdatePP); - // + // // CB_PPu2 - // + // this.CB_PPu2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PPu2.FormattingEnabled = true; this.CB_PPu2.Items.AddRange(new object[] { @@ -2013,9 +2049,9 @@ private void InitializeComponent() this.CB_PPu2.Size = new System.Drawing.Size(38, 21); this.CB_PPu2.TabIndex = 6; this.CB_PPu2.SelectedIndexChanged += new System.EventHandler(this.UpdatePP); - // + // // CB_Move4 - // + // this.CB_Move4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Move4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Move4.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; @@ -2025,12 +2061,13 @@ private void InitializeComponent() this.CB_Move4.Size = new System.Drawing.Size(121, 21); this.CB_Move4.TabIndex = 10; this.CB_Move4.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ValidateMovePaint); + this.CB_Move4.DropDown += new System.EventHandler(this.ValidateMoveDropDown); this.CB_Move4.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_Move4.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_Move4.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_PPu1 - // + // this.CB_PPu1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_PPu1.FormattingEnabled = true; this.CB_PPu1.Items.AddRange(new object[] { @@ -2043,9 +2080,9 @@ private void InitializeComponent() this.CB_PPu1.Size = new System.Drawing.Size(38, 21); this.CB_PPu1.TabIndex = 3; this.CB_PPu1.SelectedIndexChanged += new System.EventHandler(this.UpdatePP); - // + // // CB_Move3 - // + // this.CB_Move3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Move3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Move3.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; @@ -2055,12 +2092,13 @@ private void InitializeComponent() this.CB_Move3.Size = new System.Drawing.Size(121, 21); this.CB_Move3.TabIndex = 7; this.CB_Move3.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ValidateMovePaint); + this.CB_Move3.DropDown += new System.EventHandler(this.ValidateMoveDropDown); this.CB_Move3.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_Move3.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_Move3.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_Move2 - // + // this.CB_Move2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Move2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Move2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; @@ -2070,12 +2108,13 @@ private void InitializeComponent() this.CB_Move2.Size = new System.Drawing.Size(121, 21); this.CB_Move2.TabIndex = 4; this.CB_Move2.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ValidateMovePaint); + this.CB_Move2.DropDown += new System.EventHandler(this.ValidateMoveDropDown); this.CB_Move2.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_Move2.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_Move2.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // CB_Move1 - // + // this.CB_Move1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CB_Move1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CB_Move1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; @@ -2085,12 +2124,13 @@ private void InitializeComponent() this.CB_Move1.Size = new System.Drawing.Size(121, 21); this.CB_Move1.TabIndex = 1; this.CB_Move1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ValidateMovePaint); + this.CB_Move1.DropDown += new System.EventHandler(this.ValidateMoveDropDown); this.CB_Move1.SelectedIndexChanged += new System.EventHandler(this.ValidateMove); this.CB_Move1.Leave += new System.EventHandler(this.ValidateComboBox2); this.CB_Move1.Validating += new System.ComponentModel.CancelEventHandler(this.ValidateComboBox); - // + // // Tab_OTMisc - // + // this.Tab_OTMisc.AllowDrop = true; this.Tab_OTMisc.Controls.Add(this.FLP_PKMEditors); this.Tab_OTMisc.Controls.Add(this.TB_EC); @@ -2103,14 +2143,14 @@ private void InitializeComponent() this.Tab_OTMisc.Location = new System.Drawing.Point(4, 22); this.Tab_OTMisc.Name = "Tab_OTMisc"; this.Tab_OTMisc.Padding = new System.Windows.Forms.Padding(3); - this.Tab_OTMisc.Size = new System.Drawing.Size(272, 462); + this.Tab_OTMisc.Size = new System.Drawing.Size(192, 74); this.Tab_OTMisc.TabIndex = 4; this.Tab_OTMisc.Text = "OT/Misc"; this.Tab_OTMisc.UseVisualStyleBackColor = true; - // + // // FLP_PKMEditors - // - this.FLP_PKMEditors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.FLP_PKMEditors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.FLP_PKMEditors.AutoSize = true; this.FLP_PKMEditors.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; @@ -2122,11 +2162,11 @@ private void InitializeComponent() this.FLP_PKMEditors.Size = new System.Drawing.Size(175, 25); this.FLP_PKMEditors.TabIndex = 9; this.FLP_PKMEditors.WrapContents = false; - // + // // BTN_Ribbons - // - this.BTN_Ribbons.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.BTN_Ribbons.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.BTN_Ribbons.AutoSize = true; this.BTN_Ribbons.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; @@ -2138,11 +2178,11 @@ private void InitializeComponent() this.BTN_Ribbons.Text = "Ribbons"; this.BTN_Ribbons.UseVisualStyleBackColor = true; this.BTN_Ribbons.Click += new System.EventHandler(this.OpenRibbons); - // + // // BTN_Medals - // - this.BTN_Medals.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.BTN_Medals.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.BTN_Medals.AutoSize = true; this.BTN_Medals.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; @@ -2154,11 +2194,11 @@ private void InitializeComponent() this.BTN_Medals.Text = "Medals"; this.BTN_Medals.UseVisualStyleBackColor = true; this.BTN_Medals.Click += new System.EventHandler(this.OpenMedals); - // + // // BTN_History - // - this.BTN_History.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.BTN_History.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.BTN_History.AutoSize = true; this.BTN_History.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; @@ -2170,9 +2210,9 @@ private void InitializeComponent() this.BTN_History.Text = "Memories"; this.BTN_History.UseVisualStyleBackColor = true; this.BTN_History.Click += new System.EventHandler(this.OpenHistory); - // + // // TB_EC - // + // this.TB_EC.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_EC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TB_EC.Location = new System.Drawing.Point(176, 276); @@ -2182,9 +2222,9 @@ private void InitializeComponent() this.TB_EC.TabIndex = 8; this.TB_EC.Text = "12345678"; this.TB_EC.Validated += new System.EventHandler(this.Update_ID); - // + // // GB_nOT - // + // this.GB_nOT.Controls.Add(this.Label_CTGender); this.GB_nOT.Controls.Add(this.TB_OTt2); this.GB_nOT.Controls.Add(this.Label_PrevOT); @@ -2194,9 +2234,9 @@ private void InitializeComponent() this.GB_nOT.TabIndex = 2; this.GB_nOT.TabStop = false; this.GB_nOT.Text = "Latest (not OT) Handler"; - // + // // Label_CTGender - // + // this.Label_CTGender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label_CTGender.Location = new System.Drawing.Point(144, 23); this.Label_CTGender.Name = "Label_CTGender"; @@ -2205,9 +2245,9 @@ private void InitializeComponent() this.Label_CTGender.Text = "G"; this.Label_CTGender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.Label_CTGender.Click += new System.EventHandler(this.ClickTRGender); - // + // // TB_OTt2 - // + // this.TB_OTt2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.TB_OTt2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_OTt2.Location = new System.Drawing.Point(46, 20); @@ -2218,9 +2258,9 @@ private void InitializeComponent() this.TB_OTt2.WordWrap = false; this.TB_OTt2.TextChanged += new System.EventHandler(this.UpdateNotOT); this.TB_OTt2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.UpdateNicknameClick); - // + // // Label_PrevOT - // + // this.Label_PrevOT.Location = new System.Drawing.Point(4, 23); this.Label_PrevOT.Name = "Label_PrevOT"; this.Label_PrevOT.Size = new System.Drawing.Size(40, 13); @@ -2228,9 +2268,9 @@ private void InitializeComponent() this.Label_PrevOT.Text = "OT:"; this.Label_PrevOT.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_PrevOT.Click += new System.EventHandler(this.ClickCT); - // + // // BTN_RerollEC - // + // this.BTN_RerollEC.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F); this.BTN_RerollEC.Location = new System.Drawing.Point(138, 276); this.BTN_RerollEC.Name = "BTN_RerollEC"; @@ -2239,9 +2279,9 @@ private void InitializeComponent() this.BTN_RerollEC.Text = "Reroll"; this.BTN_RerollEC.UseVisualStyleBackColor = true; this.BTN_RerollEC.Click += new System.EventHandler(this.UpdateRandomEC); - // + // // GB_Markings - // + // this.GB_Markings.Controls.Add(this.PB_MarkHorohoro); this.GB_Markings.Controls.Add(this.PB_MarkVC); this.GB_Markings.Controls.Add(this.PB_MarkAlola); @@ -2260,9 +2300,9 @@ private void InitializeComponent() this.GB_Markings.TabIndex = 4; this.GB_Markings.TabStop = false; this.GB_Markings.Text = "Markings"; - // + // // PB_MarkHorohoro - // + // this.PB_MarkHorohoro.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkHorohoro.Image"))); this.PB_MarkHorohoro.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkHorohoro.InitialImage"))); this.PB_MarkHorohoro.Location = new System.Drawing.Point(110, 15); @@ -2271,9 +2311,9 @@ private void InitializeComponent() this.PB_MarkHorohoro.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkHorohoro.TabIndex = 11; this.PB_MarkHorohoro.TabStop = false; - // + // // PB_MarkVC - // + // this.PB_MarkVC.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkVC.Image"))); this.PB_MarkVC.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkVC.InitialImage"))); this.PB_MarkVC.Location = new System.Drawing.Point(89, 15); @@ -2282,9 +2322,9 @@ private void InitializeComponent() this.PB_MarkVC.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkVC.TabIndex = 10; this.PB_MarkVC.TabStop = false; - // + // // PB_MarkAlola - // + // this.PB_MarkAlola.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkAlola.Image"))); this.PB_MarkAlola.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkAlola.InitialImage"))); this.PB_MarkAlola.Location = new System.Drawing.Point(68, 15); @@ -2293,9 +2333,9 @@ private void InitializeComponent() this.PB_MarkAlola.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkAlola.TabIndex = 9; this.PB_MarkAlola.TabStop = false; - // + // // PB_Mark6 - // + // this.PB_Mark6.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark6.Image"))); this.PB_Mark6.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark6.InitialImage"))); this.PB_Mark6.Location = new System.Drawing.Point(110, 36); @@ -2306,9 +2346,9 @@ private void InitializeComponent() this.PB_Mark6.TabIndex = 5; this.PB_Mark6.TabStop = false; this.PB_Mark6.Click += new System.EventHandler(this.ClickMarking); - // + // // PB_MarkPentagon - // + // this.PB_MarkPentagon.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkPentagon.Image"))); this.PB_MarkPentagon.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkPentagon.InitialImage"))); this.PB_MarkPentagon.Location = new System.Drawing.Point(47, 15); @@ -2317,9 +2357,9 @@ private void InitializeComponent() this.PB_MarkPentagon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkPentagon.TabIndex = 8; this.PB_MarkPentagon.TabStop = false; - // + // // PB_Mark3 - // + // this.PB_Mark3.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark3.Image"))); this.PB_Mark3.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark3.InitialImage"))); this.PB_Mark3.Location = new System.Drawing.Point(47, 36); @@ -2330,9 +2370,9 @@ private void InitializeComponent() this.PB_Mark3.TabIndex = 2; this.PB_Mark3.TabStop = false; this.PB_Mark3.Click += new System.EventHandler(this.ClickMarking); - // + // // PB_Mark5 - // + // this.PB_Mark5.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark5.Image"))); this.PB_Mark5.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark5.InitialImage"))); this.PB_Mark5.Location = new System.Drawing.Point(89, 36); @@ -2343,9 +2383,9 @@ private void InitializeComponent() this.PB_Mark5.TabIndex = 4; this.PB_Mark5.TabStop = false; this.PB_Mark5.Click += new System.EventHandler(this.ClickMarking); - // + // // PB_MarkCured - // + // this.PB_MarkCured.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkCured.Image"))); this.PB_MarkCured.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkCured.InitialImage"))); this.PB_MarkCured.Location = new System.Drawing.Point(26, 15); @@ -2354,9 +2394,9 @@ private void InitializeComponent() this.PB_MarkCured.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkCured.TabIndex = 7; this.PB_MarkCured.TabStop = false; - // + // // PB_Mark2 - // + // this.PB_Mark2.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark2.Image"))); this.PB_Mark2.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark2.InitialImage"))); this.PB_Mark2.Location = new System.Drawing.Point(26, 36); @@ -2367,9 +2407,9 @@ private void InitializeComponent() this.PB_Mark2.TabIndex = 1; this.PB_Mark2.TabStop = false; this.PB_Mark2.Click += new System.EventHandler(this.ClickMarking); - // + // // PB_MarkShiny - // + // this.PB_MarkShiny.Image = ((System.Drawing.Image)(resources.GetObject("PB_MarkShiny.Image"))); this.PB_MarkShiny.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_MarkShiny.InitialImage"))); this.PB_MarkShiny.Location = new System.Drawing.Point(5, 15); @@ -2378,9 +2418,9 @@ private void InitializeComponent() this.PB_MarkShiny.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.PB_MarkShiny.TabIndex = 6; this.PB_MarkShiny.TabStop = false; - // + // // PB_Mark1 - // + // this.PB_Mark1.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark1.Image"))); this.PB_Mark1.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark1.InitialImage"))); this.PB_Mark1.Location = new System.Drawing.Point(5, 36); @@ -2391,9 +2431,9 @@ private void InitializeComponent() this.PB_Mark1.TabIndex = 0; this.PB_Mark1.TabStop = false; this.PB_Mark1.Click += new System.EventHandler(this.ClickMarking); - // + // // PB_Mark4 - // + // this.PB_Mark4.Image = ((System.Drawing.Image)(resources.GetObject("PB_Mark4.Image"))); this.PB_Mark4.InitialImage = ((System.Drawing.Image)(resources.GetObject("PB_Mark4.InitialImage"))); this.PB_Mark4.Location = new System.Drawing.Point(68, 36); @@ -2404,9 +2444,9 @@ private void InitializeComponent() this.PB_Mark4.TabIndex = 3; this.PB_Mark4.TabStop = false; this.PB_Mark4.Click += new System.EventHandler(this.ClickMarking); - // + // // GB_ExtraBytes - // + // this.GB_ExtraBytes.Controls.Add(this.TB_ExtraByte); this.GB_ExtraBytes.Controls.Add(this.CB_ExtraBytes); this.GB_ExtraBytes.Location = new System.Drawing.Point(68, 135); @@ -2415,9 +2455,9 @@ private void InitializeComponent() this.GB_ExtraBytes.TabIndex = 3; this.GB_ExtraBytes.TabStop = false; this.GB_ExtraBytes.Text = "Extra Bytes"; - // + // // TB_ExtraByte - // + // this.TB_ExtraByte.Location = new System.Drawing.Point(87, 19); this.TB_ExtraByte.Mask = "000"; this.TB_ExtraByte.Name = "TB_ExtraByte"; @@ -2425,9 +2465,9 @@ private void InitializeComponent() this.TB_ExtraByte.TabIndex = 2; this.TB_ExtraByte.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.TB_ExtraByte.Validated += new System.EventHandler(this.UpdateExtraByteValue); - // + // // CB_ExtraBytes - // + // this.CB_ExtraBytes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_ExtraBytes.FormattingEnabled = true; this.CB_ExtraBytes.Location = new System.Drawing.Point(20, 18); @@ -2435,9 +2475,9 @@ private void InitializeComponent() this.CB_ExtraBytes.Size = new System.Drawing.Size(57, 21); this.CB_ExtraBytes.TabIndex = 1; this.CB_ExtraBytes.SelectedIndexChanged += new System.EventHandler(this.UpdateExtraByteIndex); - // + // // GB_OT - // + // this.GB_OT.Controls.Add(this.TID_Trainer); this.GB_OT.Controls.Add(this.Label_OTGender); this.GB_OT.Controls.Add(this.TB_OT); @@ -2448,9 +2488,16 @@ private void InitializeComponent() this.GB_OT.TabIndex = 1; this.GB_OT.TabStop = false; this.GB_OT.Text = "Trainer Information"; - // + // + // TID_Trainer + // + this.TID_Trainer.Location = new System.Drawing.Point(13, 18); + this.TID_Trainer.Name = "TID_Trainer"; + this.TID_Trainer.Size = new System.Drawing.Size(178, 27); + this.TID_Trainer.TabIndex = 57; + // // Label_OTGender - // + // this.Label_OTGender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label_OTGender.Location = new System.Drawing.Point(144, 48); this.Label_OTGender.Name = "Label_OTGender"; @@ -2459,9 +2506,9 @@ private void InitializeComponent() this.Label_OTGender.Text = "G"; this.Label_OTGender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.Label_OTGender.Click += new System.EventHandler(this.ClickTRGender); - // + // // TB_OT - // + // this.TB_OT.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TB_OT.Location = new System.Drawing.Point(46, 46); this.TB_OT.MaxLength = 12; @@ -2469,9 +2516,9 @@ private void InitializeComponent() this.TB_OT.Size = new System.Drawing.Size(94, 20); this.TB_OT.TabIndex = 3; this.TB_OT.MouseDown += new System.Windows.Forms.MouseEventHandler(this.UpdateNicknameClick); - // + // // Label_OT - // + // this.Label_OT.Location = new System.Drawing.Point(4, 48); this.Label_OT.Name = "Label_OT"; this.Label_OT.Size = new System.Drawing.Size(40, 13); @@ -2479,55 +2526,18 @@ private void InitializeComponent() this.Label_OT.Text = "OT:"; this.Label_OT.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.Label_OT.Click += new System.EventHandler(this.ClickOT); - // + // // Label_EncryptionConstant - // + // this.Label_EncryptionConstant.Location = new System.Drawing.Point(20, 279); this.Label_EncryptionConstant.Name = "Label_EncryptionConstant"; this.Label_EncryptionConstant.Size = new System.Drawing.Size(120, 13); this.Label_EncryptionConstant.TabIndex = 1; this.Label_EncryptionConstant.Text = "Encryption Constant:"; this.Label_EncryptionConstant.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // ShinyLeaf - // - this.ShinyLeaf.Location = new System.Drawing.Point(110, 0); - this.ShinyLeaf.Margin = new System.Windows.Forms.Padding(0); - this.ShinyLeaf.Name = "ShinyLeaf"; - this.ShinyLeaf.Size = new System.Drawing.Size(140, 56); - this.ShinyLeaf.TabIndex = 116; - this.ShinyLeaf.Value = 0; - // - // Stats - // - this.Stats.Location = new System.Drawing.Point(0, 0); - this.Stats.Name = "Stats"; - this.Stats.Size = new System.Drawing.Size(270, 240); - this.Stats.TabIndex = 118; - // - // Contest - // - this.Contest.CNT_Beauty = 0; - this.Contest.CNT_Cool = 0; - this.Contest.CNT_Cute = 0; - this.Contest.CNT_Sheen = 0; - this.Contest.CNT_Smart = 0; - this.Contest.CNT_Tough = 0; - this.Contest.Location = new System.Drawing.Point(21, 247); - this.Contest.Margin = new System.Windows.Forms.Padding(0); - this.Contest.Name = "Contest"; - this.Contest.Size = new System.Drawing.Size(230, 50); - this.Contest.TabIndex = 117; - // - // TID_Trainer - // - this.TID_Trainer.Location = new System.Drawing.Point(13, 18); - this.TID_Trainer.Name = "TID_Trainer"; - this.TID_Trainer.Size = new System.Drawing.Size(178, 27); - this.TID_Trainer.TabIndex = 57; - // + // // PKMEditor - // + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.Controls.Add(this.tabMain); this.Name = "PKMEditor"; diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index a9eb6295c..97133b9be 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -267,6 +267,8 @@ public void UpdateLegality(LegalityAnalysis la = null, bool skipMoveRepop = fals LegalityChanged?.Invoke(Legality.Valid, null); } + private List MoveDataAllowed = new List(); + private void ReloadMoves(IReadOnlyCollection moves) { // check prior movepool to not needlessly refresh the dataset @@ -274,15 +276,20 @@ private void ReloadMoves(IReadOnlyCollection moves) return; AllowedMoves = new HashSet(moves); - var moveList = GameInfo.Strings.MoveDataSource.OrderByDescending(m => AllowedMoves.Contains(m.Value)).ToList(); - foreach (var c in Moves) - { - var index = WinFormsUtil.GetIndex(c); - c.DataSource = new BindingSource(moveList, null); - c.SelectedValue = index; - if (c.Visible) - c.SelectionLength = 0; // flicker hack - } + MoveDataAllowed = GameInfo.Strings.MoveDataSource.OrderByDescending(m => AllowedMoves.Contains(m.Value)).ToList(); + + // defer repop until dropdown is opened; handled by dropdown event + for (int i = 0; i < IsMoveBoxOrdered.Count; i++) + IsMoveBoxOrdered[i] = false; + } + + private void SetMoveDataSource(ComboBox c) + { + var index = WinFormsUtil.GetIndex(c); + c.DataSource = new BindingSource(MoveDataAllowed, null); + c.SelectedValue = index; + if (c.Visible) + c.SelectionLength = 0; // flicker hack } public void UpdateUnicode(string[] symbols) @@ -1501,6 +1508,18 @@ private void ValidateMovePaint(object sender, DrawItemEventArgs e) e.Graphics.DrawString(i.Text, e.Font, tBrush, e.Bounds, StringFormat.GenericDefault); } + private readonly IList IsMoveBoxOrdered = new bool[4]; + + private void ValidateMoveDropDown(object sender, EventArgs e) + { + var s = (ComboBox) sender; + var index = Array.IndexOf(Moves, s); + if (IsMoveBoxOrdered[index]) + return; + SetMoveDataSource(s); + IsMoveBoxOrdered[index] = true; + } + private void ValidateLocation(object sender, EventArgs e) { ValidateComboBox(sender);