Example #1
0
 protected virtual void onRefreshCompletetd ( RefreshCompletedEventArgs e )
 {
     if ( RefreshCompleted != null )
     {
         RefreshCompleted( this, e );
     }
 }
Example #2
0
        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 ); 
            }
        }