Inheritance: System.EventArgs
Ejemplo 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;
     }
 }
Ejemplo n.º 2
0
 public void OnMbedStatusChanged(MbedStatusEventArgs e)
 {
     EventHandler<MbedStatusEventArgs> handler = MbedStatusChanged;
     if (handler != null) handler(this, e);
 }
Ejemplo 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);
 }