예제 #1
0
 private void SaveControls(IControlSave cs)
 {
     foreach (Control c in groupBox1.Controls)
     {
         SaveLoad.saveControl(cs, c);
     }
     foreach (Control c in groupBox2.Controls)
     {
         SaveLoad.saveControl(cs, c);
     }
     cs.SaveTextBox(labelDirectory.Name, labelDirectory.Text);
 }
예제 #2
0
파일: SaveLoad.cs 프로젝트: spartajet/gears
 public static void saveControl(IControlSave cs, Control c)
 {
     if (c is TextBox)
     {
         cs.SaveTextBox(c.Name, c.Text);
     }
     else if (c is ComboBox)
     {
         cs.SaveComboBox(c.Name, c.Text);
     }
     else if (c is CheckBox)
     {
         cs.SaveCheckBox(c.Name, (c as CheckBox).Checked);
     }
 }
예제 #3
0
파일: SaveLoad.cs 프로젝트: jwatte/gears
 public static void saveControl(IControlSave cs, Control c)
 {
     if (c is TextBox)
     {
         cs.SaveTextBox(c.Name, c.Text);
     }
     else if (c is ComboBox)
     {
         cs.SaveComboBox(c.Name, c.Text);
     }
     else if (c is CheckBox)
     {
         cs.SaveCheckBox(c.Name, (c as CheckBox).Checked);
     }
 }
예제 #4
0
파일: ExportForm.cs 프로젝트: jwatte/gears
 private void SaveControls(IControlSave cs)
 {
     foreach (Control c in groupBox1.Controls)
     {
         SaveLoad.saveControl(cs, c);
     }
     foreach (Control c in groupBox2.Controls)
     {
         SaveLoad.saveControl(cs, c);
     }
     cs.SaveTextBox(labelDirectory.Name, labelDirectory.Text);
 }