public void Initialize(AcceptCancelDialog control) { var error = CreateException(); InitializeDialog( control, () => DialogViewModel.ExceptionDialog(error)); exceptionDialog = ContentViewModel as IExceptionDialog; exceptionDialog.Show(); }
/// <summary> Shows an exception message and detail dialog. </summary> /// <param name="exception">Exception to display</param> /// <param name="title">Optional dialog title</param> public static void ShowException(Exception exception, string title) { IExceptionDialog exDlg = UIFactory.NewShell <IExceptionDialog>(); exDlg.DialogType = EMessageDialogType.Error; exDlg.WindowTitle = title ?? string.Empty; exDlg.Header = Messages.MessageDialog_ExceptionDialog_Header; exDlg.Exception = exception; exDlg.DialogResultSet = new[] { EMessageDialogResult.Close }; exDlg.Show(); }
private void ShowReal() { _result = _real.Show(Title, Message, Exception, Actions); }