示例#1
0
 private void buttonSettings_Click(object sender, EventArgs e)
 {
     if (settingsForm == null)
     {
         settingsForm = new SettingsForm(settings);
     }
     try
     {
         settingsForm.Show();
     }
     catch
     {
         settingsForm = null;
     }
 }
示例#2
0
 private void settingsClosedHandler()
 {
     ApplySettings();
     settingsForm = null;
 }
示例#3
0
 private void menuItemClickSettingsHandler(object sender, EventArgs e)
 {
     if (settingsForm == null)
     {
         settingsForm = new SettingsForm(settings);
         settingsForm.Subscribe(settingsClosedHandler);
     }
     try
     {
         settingsForm.Show();
     }
     catch
     {
         settingsForm = null;
         menuItemClickSettingsHandler(sender, e);
     }
 }