private void OnErrorOccurred(ErrorEventArgs e) { EventHandler<ErrorEventArgs> handler = ErrorOccurred; if (handler != null) handler(this, e); }
private void ErrorOccurredHandler(object sender, ErrorEventArgs e) { _model.AbortTreeBuilding(); _view.ShowError(e.ErrorMessage, e.Exception != null ? e.Exception.Message : null, Thread.CurrentThread.Name); _view.ResetFilesTree(); }
private void ErrorOccurredHandler(object sender, ErrorEventArgs e) { OnErrorOccurred(e); }