コード例 #1
0
        private void doError(object sender, ScallopSensorStatusChangedEventArgs e)
        {
            if (this.StatusChanged != null)
            this.StatusChanged(sender, e);

             myState = ScallopSensorState.Error;
        }
コード例 #2
0
 private void doStatusChanged(object sender, ScallopSensorStatusChangedEventArgs e)
 {
     ScallopSensorState oldState = this.myState;
      this.myState = e.NewState;
      if (this.StatusChanged != null)
     this.StatusChanged(sender, e);
 }
コード例 #3
0
        void SensorInterface_StatusChanged(object sender, ScallopSensorStatusChangedEventArgs e)
        {
            Console.WriteLine("Sensor status changed to " + e.NewState.ToString());

             /* Handle sensor status changes
              * ...
              *
              */
        }