public ProcessSensorForm(CrudType crudType, ProcessSensor sensor, List <ISensor> existingSensors) { Sensor = sensor; ExistingSensors = existingSensors; this.crudType = crudType; InitializeComponent(); InitCustomCode(); if (crudType == CrudType.Add) { cmbTimeType.SelectedIndex = (int)CheckIntervalType.Minutes; Sensor.Id = Guid.NewGuid(); } UpdateUIFromData(); }
public override void Process(K key, V value) { Forward(key, value); ProcessSensor.Record(1.0, Context.Timestamp); }