Exemplo n.º 1
0
        private static void ShowException(ExceptionMessage message)
        {
            ExceptionWindow window = new ExceptionWindow
            {
                DataContext = message.ExceptionVM
            };

            message.ExceptionVM.RequestClose += (sender, e) =>
            {
                window.Close();
            };
            window.ShowDialog();
        }
Exemplo n.º 2
0
        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();
        }