示例#1
0
 private void ButtonOptionsClick(object sender, ItemClickEventArgs e) {
   using (SettingsBox form = new SettingsBox()) {
     DialogResult dr = form.ShowDialog(this);
     if (dr == DialogResult.OK) {
       Settings.Options = form.GetSettings();
     }
   }
 }
示例#2
0
 private void ShowSettingsBox()
 {
     using (SettingsBox form = new SettingsBox()) {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             Settings.Options = form.GetSettings();
         }
     }
 }