Пример #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);
     }
 }