private void MenuOpenInputEditor(object sender, RoutedEventArgs e) { if (inputEditorWindow == null) { inputEditorWindow = new TASInputEditor(); inputEditorWindow.Closed += InputEditorWindow_Closed; inputEditorWindow.Show(); } else { FocusWindow(inputEditorWindow); } }
private void InputEditorWindow_Closed(object sender, EventArgs e) { inputEditorWindow = null; }