diff --git a/Subforms/PKM Editors/SuperTrainingEditor.Designer.cs b/Subforms/PKM Editors/SuperTrainingEditor.Designer.cs index 0fe2c9b88..52ccdfadc 100644 --- a/Subforms/PKM Editors/SuperTrainingEditor.Designer.cs +++ b/Subforms/PKM Editors/SuperTrainingEditor.Designer.cs @@ -153,7 +153,7 @@ private void InitializeComponent() // CHK_Secret // this.CHK_Secret.AutoSize = true; - this.CHK_Secret.Location = new System.Drawing.Point(3, 2); + this.CHK_Secret.Location = new System.Drawing.Point(2, 2); this.CHK_Secret.Name = "CHK_Secret"; this.CHK_Secret.Size = new System.Drawing.Size(171, 17); this.CHK_Secret.TabIndex = 36; @@ -213,16 +213,17 @@ private void InitializeComponent() // TLP_DistSuperTrain // this.TLP_DistSuperTrain.AutoScroll = true; - this.TLP_DistSuperTrain.ColumnCount = 2; + this.TLP_DistSuperTrain.AutoSize = true; + this.TLP_DistSuperTrain.ColumnCount = 1; this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.TLP_DistSuperTrain.Dock = System.Windows.Forms.DockStyle.Bottom; - this.TLP_DistSuperTrain.Location = new System.Drawing.Point(0, 101); + this.TLP_DistSuperTrain.Location = new System.Drawing.Point(0, 229); this.TLP_DistSuperTrain.Name = "TLP_DistSuperTrain"; this.TLP_DistSuperTrain.RowCount = 1; this.TLP_DistSuperTrain.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.TLP_DistSuperTrain.Size = new System.Drawing.Size(215, 128); + this.TLP_DistSuperTrain.Size = new System.Drawing.Size(215, 0); this.TLP_DistSuperTrain.TabIndex = 3; // // SuperTrainingEditor diff --git a/Subforms/PKM Editors/SuperTrainingEditor.cs b/Subforms/PKM Editors/SuperTrainingEditor.cs index 0dc12963e..203e07be6 100644 --- a/Subforms/PKM Editors/SuperTrainingEditor.cs +++ b/Subforms/PKM Editors/SuperTrainingEditor.cs @@ -57,12 +57,12 @@ private void populateRegimens(string Type, TableLayoutPanel TLP, List { reg.CompletedRegimen = chk.Checked; }; chk.Checked = reg.CompletedRegimen; - TLP_SuperTrain.Controls.Add(chk, 0, row); + TLP.Controls.Add(chk, 0, row); } private void save() @@ -143,7 +135,7 @@ private void B_None_Click(object sender, EventArgs e) } private void CHK_Secret_CheckedChanged(object sender, EventArgs e) { - foreach (var c in TLP_SuperTrain.Controls.OfType().Where(chk => Convert.ToInt16(chk.Name[10]) > 4)) + foreach (var c in TLP_SuperTrain.Controls.OfType().Where(chk => Convert.ToInt16(chk.Name[14]+"") > 4)) { c.Enabled = CHK_Secret.Checked; if (!CHK_Secret.Checked)