public ErrorsView([NotNull] ErrorsVM errVM) : base(errVM) { doc = AcadHelper.Doc; InitializeComponent(); DataContext = errVM; KeyDown += ErrorsView_KeyDown; }
public static bool?ShowDialog([NotNull] List <IError> errors) { var errVM = new ErrorsVM(errors) { IsDialog = true }; var errView = new ErrorsView(errVM); var res = Application.ShowModalWindow(errView); return(res); }
public static void ShowLast() { if (LastErrors?.Any() != true) { return; } var errVM = new ErrorsVM(LastErrors) { IsDialog = false }; var errView = new ErrorsView(errVM); Application.ShowModelessWindow(errView); }
public static void Show([NotNull] List <IError> errors) { try { var errVM = new ErrorsVM(errors) { IsDialog = false }; var errView = new ErrorsView(errVM); Application.ShowModelessWindow(errView); } catch (Exception ex) { Logger.Log.Error(ex); } }