Пример #1
0
 private void OnEngineStateChanged(object sender, EngineStarter.EngineState e)
 {
     txtEngineStatus.Text = "Engine is: " + e;
     if (e == EngineStarter.EngineState.EngineRunning || e == EngineStarter.EngineState.OnBattery)
     {
         btnStartStop.IsEnabled = true;
     }
 }
Пример #2
0
 private void Engine_EngineStateChanged(object sender, EngineStarter.EngineState e)
 {
     SendDeviceToCloudMessageAsync(e.ToString());
 }