protected virtual void OnAnalysisStateChanged(AnalysisStateChangeEventArgs e)
        {
            var handler = analysisStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
 void HandleAnalysisStateChanged(object sender, AnalysisStateChangeEventArgs e)
 {
     Application.Invoke(delegate {
         SyncStateToUi(e.NewState);
         if (e.NewState == AnalysisState.Running)
         {
             StartPeriodicUpdate();
         }
         else if (e.NewState == AnalysisState.Completed || e.NewState == AnalysisState.Cancelled)
         {
             EndPeriodicUpdate();
         }
     });
 }
예제 #3
0
		void HandleAnalysisStateChanged (object sender, AnalysisStateChangeEventArgs e)
		{
			Application.Invoke (delegate {
				SyncStateToUi (e.NewState);
				if (e.NewState == AnalysisState.Running) {
					StartPeriodicUpdate ();
				} else if (e.NewState == AnalysisState.Completed || e.NewState == AnalysisState.Cancelled) {
					EndPeriodicUpdate ();
				}
			});
		}
		protected virtual void OnAnalysisStateChanged (AnalysisStateChangeEventArgs e)
		{
			var handler = analysisStateChanged;
			if (handler != null)
				handler (this, e);
		}