void report_OnCollectionEnded(object sender, CollectorStatusEventArgs e) { statuses.Remove(e.name); base.Invoke((Action) delegate { UpdateStatus(); }); }
protected virtual void OnCollectionEnded(CollectorStatusEventArgs e) { Logger.Debug("Executing " + className + "." + MethodBase.GetCurrentMethod().Name); EventHandler <CollectorStatusEventArgs> handler = CollectionEnded; if (handler != null) { handler(this, e); } }
void report_OnCollectionStarted(object sender, CollectorStatusEventArgs e) { lock (statuses) { statuses.Add(e.name, e.status); base.Invoke((Action) delegate { UpdateStatus(); }); } }
protected virtual void OnCollectionStarted(CollectorStatusEventArgs e) { Logger.Debug("Executing " + className + "." + MethodBase.GetCurrentMethod().Name); EventHandler<CollectorStatusEventArgs> handler = CollectionStarted; if (handler != null) handler(this, e); }
void report_OnCollectionStarted(object sender, CollectorStatusEventArgs e) { lock (statuses) { statuses.Add(e.name, e.status); base.Invoke((Action)delegate { UpdateStatus(); }); } }
void report_OnCollectionEnded(object sender, CollectorStatusEventArgs e) { statuses.Remove(e.name); base.Invoke((Action)delegate { UpdateStatus(); }); }