Esempio n. 1
0
 public ExceptionMessageViewModel(ExceptionMessageWindow view, System.Exception exception, string message)
 {
     this.view      = view;
     this.exception = exception;
     this.message   = message;
     CreateCommands();
 }
Esempio n. 2
0
        public static void ShowWindow(Window owner, System.Exception exception, string message)
        {
            var view      = new ExceptionMessageWindow();
            var viewModel = new ExceptionMessageViewModel(view, exception, message);

            view.ViewModel = viewModel;

            if (owner != null)
            {
                view.Owner = owner;
            }

            view.ShowDialog();
        }
Esempio n. 3
0
 public ExceptionMessageViewModel(ExceptionMessageWindow view, System.Exception exception)
     : this(view, exception, string.Empty)
 {
 }