public ModContainer(string config, string file) { this.ConfigFile = config; this.File = file; //this.tabPage2.Location = new System.Drawing.Point(4, 25); //this.Name = "tabPage2"; //this.tabPage2.Size = new System.Drawing.Size(879, 458); //this.tabPage2.TabIndex = 1; this.UseVisualStyleBackColor = true; ConfigXml.Load(this.ConfigFile); this.Text = ConfigXml.GetElementsByTagName("title")[0].InnerText; XmlNodeList nl = ConfigXml.GetElementsByTagName("mod"); Cheats = new CheatContainer[nl.Count]; int y = 10; for (int x = 0; x < nl.Count; x++) { Cheats[x] = new CheatContainer(nl[x]); this.Controls.Add(Cheats[x]); Cheats[x].Location = new System.Drawing.Point(10, y); y += Cheats[x].Size.Height + 10; } btnPatch.Text = "Patch!"; //btnPatch.AutoSize = true; btnPatch.Size = new System.Drawing.Size(50, 30); btnPatch.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); btnPatch.Location = new System.Drawing.Point(this.Size.Width - (10 + btnPatch.Size.Width), this.Size.Height - (10 + btnPatch.Size.Height)); btnPatch.Click += new EventHandler(btnPatch_Click); this.Controls.Add(btnPatch); VerboseBox.Text = "Verbose Output"; VerboseBox.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); VerboseBox.AutoSize = true; VerboseBox.Location = new System.Drawing.Point(btnPatch.Location.X - (10 + VerboseBox.Size.Width), btnPatch.Location.Y); this.Controls.Add(VerboseBox); }