Inheritance: System.EventArgs
Esempio n. 1
0
 private void MbedServiceOnMbedStatusChanged(object sender, MbedStatusEventArgs mbedStatusEventArgs)
 {
     switch (mbedStatusEventArgs.Status)
     {
         case MbedStatus.Connected:
             OnCarControllerStatusChanged(CarControllerStatus.Connected);
             break;
         case MbedStatus.Disconnected:
         case MbedStatus.Error:
             OnCarControllerStatusChanged(CarControllerStatus.Disconnected);
             Stop();
             break;
     }
 }
Esempio n. 2
0
 public void OnMbedStatusChanged(MbedStatusEventArgs e)
 {
     EventHandler<MbedStatusEventArgs> handler = MbedStatusChanged;
     if (handler != null) handler(this, e);
 }
Esempio n. 3
0
 public void OnMbedStatusChanged(MbedStatus status)
 {
     Status = status;
     MbedStatusEventArgs e = new MbedStatusEventArgs {Status = status};
     EventHandler<MbedStatusEventArgs> handler = MbedStatusChanged;
     if (handler != null) handler(this, e);
 }