protected virtual void OnNonCriticalError(NonCriticalErrorEventArgs e) { EventHandler <NonCriticalErrorEventArgs> handler = NonCriticalError; if (handler != null) { handler(this, e); } }
void Communications_NonCriticalError(object sender, NonCriticalErrorEventArgs e) { bool result = showDialogResult(Languages.current.error, e.Message); if (result == false) { throw new OperationCanceledException(); } }