private static void ShowException(ExceptionMessage message) { ExceptionWindow window = new ExceptionWindow { DataContext = message.ExceptionVM }; message.ExceptionVM.RequestClose += (sender, e) => { window.Close(); }; window.ShowDialog(); }
private static void ShowException(ExceptionMessage message) { ExceptionWindow window = new ExceptionWindow { DataContext = message.ExceptionVM, Owner = Application.Current.MainWindow, }; message.ExceptionVM.RequestClose += (sender, e) => { window.Close(); }; window.ShowDialog(); }