loadControl() public static method

public static loadControl ( IControlLoad xl, Control c ) : void
xl IControlLoad
c System.Windows.Forms.Control
return void
Example #1
0
 private void ApplySettings(IControlLoad load)
 {
     foreach (Control c in groupParameters.Controls)
     {
         SaveLoad.loadControl(load, c);
     }
     configureEverything();
 }
Example #2
0
        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;
            }
        }