Example #1
0
 private void SettingsMenuItem_Click(object sender, EventArgs e)
 {
     // Show Settings form
     if (settingsWnd == null)
     {
         settingsWnd = new SettingsWindow();
         settingsWnd.Closed += SettingsWnd_Closed;
         settingsWnd.Show();
     }
 }
Example #2
0
 private void SettingsWnd_Closed(object sender, EventArgs e)
 {
     settingsWnd = null;
     // TODO: Apply/load the new settings
 }
Example #3
0
 private void SettingsButton_Click(object sender, RoutedEventArgs e)
 {
     // Show Settings form
     if (settingsWnd == null)
     {
         settingsWnd = new SettingsWindow();
         settingsWnd.Closed += SettingsWnd_Closed;
         settingsWnd.Show();
     }
 }