protected void Facade_ErrorEventHandler(object sender, OnErrorArgs e) { //LoggerService.Instance.Error("Error on " + sender.GetType(), e.CException); Message = ExceptionHelpers.GetMessage(e.CException); IsSuccess = false; }
public static DialogResult ShowError(IWin32Window win, Exception err) { return(MessageBox.Show(win, ExceptionHelpers.GetMessage(err), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error)); }