private void doError(object sender, ScallopSensorStatusChangedEventArgs e) { if (this.StatusChanged != null) this.StatusChanged(sender, e); myState = ScallopSensorState.Error; }
private void doStatusChanged(object sender, ScallopSensorStatusChangedEventArgs e) { ScallopSensorState oldState = this.myState; this.myState = e.NewState; if (this.StatusChanged != null) this.StatusChanged(sender, e); }
void SensorInterface_StatusChanged(object sender, ScallopSensorStatusChangedEventArgs e) { Console.WriteLine("Sensor status changed to " + e.NewState.ToString()); /* Handle sensor status changes * ... * */ }