Esempio 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();
        }
Esempio 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();
        }