private void ApplySettings(IControlLoad load) { foreach (Control c in groupParameters.Controls) { SaveLoad.loadControl(load, c); } configureEverything(); }
private void loadControls(IControlLoad xl) { foreach (Control c in groupBox1.Controls) { SaveLoad.loadControl(xl, c); } foreach (Control c in groupBox2.Controls) { SaveLoad.loadControl(xl, c); } string sVal = ""; if (xl.LoadTextBox("labelDirectory", ref sVal)) { labelDirectory.Text = sVal; } }