예제 #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();
     }
 }
예제 #2
0
 private void SettingsWnd_Closed(object sender, EventArgs e)
 {
     settingsWnd = null;
     // TODO: Apply/load the new settings
 }
예제 #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();
     }
 }