protected virtual void OnErrorOccured(ErrorMessageEventArgs e) { if (ErrorOccured != null) ErrorOccured(this, e); }
void OnErrorOccured(object sender, ErrorMessageEventArgs e) { MessageBox.Show(e.ErrorMessage, "Error", MessageBoxButton.OK, MessageBoxImage.Error); }