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; } }
private void Engine_EngineStateChanged(object sender, EngineStarter.EngineState e) { SendDeviceToCloudMessageAsync(e.ToString()); }