public static void Command_New() { if (DialogWindowOpen) { return; } DialogWindowOpen = true; LevelSettings ls = new LevelSettings(true); ls.ShowDialog(); DialogWindowOpen = false; }
// Menu items private void LevelSettings_Click(object sender, RoutedEventArgs e) { LevelSettings ls = new LevelSettings(); ls.ShowDialog(); }