private void Page_OnClosed() { instance.Close(); instance = null; }
/** * When the option 'Exit' is selected in the context menu, the application is * shut down. */ private void SettingsToolStripMenuItem_Click(object sender, System.EventArgs e) { SettingsWindow sw = SettingsWindow.Instance; sw.Show(); }
private void Button_Click(object sender, RoutedEventArgs e) { SettingsWindow sw = SettingsWindow.Instance; sw.Show(); }