protected virtual void ErrorEventHandler(ErrorEvent handler, ErrorEventArgs args) { if (handler != null) { handler(this, args); } }
protected virtual void raiseError(Exception ex) { ErrorEventArgs args = new ErrorEventArgs("Application Errors!", ex); if (IsUsingErrorContainer) { exception.Push(ex); } }
protected virtual void ProcessErrorEvent(ErrorEventHandler handler, ErrorEventArgs args) { if (handler != null) { handler(this, args); HandleException(); } }
protected virtual void raiseError(Exception ex) { ErrorEventArgs args = new ErrorEventArgs("Application Errors!", ex); ErrorEventHandler(ErrorHandler, args); }
private void OnError(object sender, ErrorEventArgs ev) { MessageBox.Show("程序发生错误 : " +ev.Exception.Message, "提示"); }
public void ErrorMessage(ErrorEventArgs error) { ProcessErrorEvent(ErrorEvent, error); }
public void ErrorMessage(ErrorEventArgs args) { callBack.ErrorMessage(args); }