/// <summary> /// Shows the window as modal dialog. /// </summary> public static void ShowModalWindow() { ExecuteInSTA(() => { Window window = null; try { window = new InteractiveWindow(); window.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } window.Close(); }); }
/// <summary> /// Shows the window as modal dialog. /// </summary> public static void ShowModalWindow() { ExecuteInSTA(() => { Window window = null; try { window = new InteractiveWindow(); window.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } window.Close(); System.Windows.Threading.Dispatcher.CurrentDispatcher.InvokeShutdown(); }); }