Ejemplo n.º 1
0
 private void SaveAllSettings()
 {
     RegistryHelper.SaveSetting("Settings", "Interval", numericUpDown1.Value.ToString());
     RegistryHelper.SaveSetting("Settings", "Cleanup", numericUpDown2.Value.ToString());
     RegistryHelper.SaveSetting("Settings", "RootFolder", textBox1.Text);
     SaveSettingFromCheckbox("Settings", "AutoStart", checkBox1);
     SaveSettingFromCheckbox("Settings", "RecycleBin", checkBox2);
 }
Ejemplo n.º 2
0
 private void SaveSettingFromCheckbox(string Section, string Key, CheckBox control)
 {
     RegistryHelper.SaveSetting(Section, Key, control.Checked ? "1" : "0");
 }