protected virtual void OnAnalysisStateChanged(AnalysisStateChangeEventArgs e) { var handler = analysisStateChanged; if (handler != null) { handler(this, e); } }
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(); } }); }
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); }