protected virtual void onRefreshCompletetd ( RefreshCompletedEventArgs e ) { if ( RefreshCompleted != null ) { RefreshCompleted( this, e ); } }
void _bugTrackExtractor_RefreshCompleted ( object sender, RefreshCompletedEventArgs e ) { try { if ( e.Error != null ) { throw e.Error; } foreach ( var bugtrackId in App.Instance.BugtrackIds ) { string btTitle = _bugTrackExtractor.ExtractTitle( bugtrackId ); if ( btTitle == null ) { App.Instance.ShowErrorMessage( string.Format( "Can't find Bugtrack Record. Please check Bugtrack Id: {0}...", bugtrackId ) ); Dispatcher.Invoke( new Action( () => MainWindow.Instance.SwitchView( MainWindow.ViewType.BugTrackForm ) ) ); return; } // append bugtrack title App.Instance.BugtrackEntryTitle += string.Format( "{0}\r\n", btTitle ); } updateBugtrackTitle(); initializeNamedPipe(); } catch ( Exception ex) { App.Instance.HandleException( ex ); } }