private void UpdateMonitoringArgs(ControlStructures.MonitoringSnapshot added, ControlStructures.MonitoringSnapshot removed) { // Event handler to populate Monitoring across all controllers. --Kris MonitoringUpdateEventArgs args = new MonitoringUpdateEventArgs { Added = added, Removed = removed }; OnMonitoringUpdated(args); }
internal virtual void UpdateMonitoring(MonitoringUpdateEventArgs e) { Monitoring.Remove(e.Removed); Monitoring.Add(e.Added); }
protected virtual void OnMonitoringUpdated(MonitoringUpdateEventArgs e) { MonitoringUpdated?.Invoke(this, e); }
public void C_MonitoringUpdated(object sender, MonitoringUpdateEventArgs e) { Monitor.UpdateMonitoring(e); }