loadControl() публичный статический Метод

public static loadControl ( IControlLoad xl, Control c ) : void
xl IControlLoad
c System.Windows.Forms.Control
Результат void
Пример #1
0
 private void ApplySettings(IControlLoad load)
 {
     foreach (Control c in groupParameters.Controls)
     {
         SaveLoad.loadControl(load, c);
     }
     configureEverything();
 }
Пример #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;
            }
        }