public void LoadIniObject(IniObject ini, int labelWidth = 200, int textboxWidth = 300) { iniObject = ini; var p = IniEditLoader.LoadIniObject(ini, labelWidth, textboxWidth); p.Location = new Point(10, 10); p.Dock = DockStyle.Fill; var groupbox = new GroupBox(); groupbox.Text = p.Text; groupbox.Dock = DockStyle.Fill; groupbox.Controls.Add(p); this.splitContainer1.Panel1.Controls.Add(groupbox); this.Invalidate(); panel = p; }
private void buttonSaveIni_Click(object sender, EventArgs e) { IniEditLoader.UpdateIniObject(ref iniObject, panel); }