private void SpeedChanged(object sender, SpeedChangedArgs e) { DateTime now = DateTime.Now; odo += lastSpeed * (now - lastTime).TotalMilliseconds / 1000; lastSpeed = e.Speed; lastTime = DateTime.Now; OnOdoChanged(Odo); }
private void Engine_SpeedChanged(object sender, SpeedChangedArgs e) { lSpeed.Text = e.Speed.ToString(); }
private void Engine_SpeedChanged(object sender, SpeedChangedArgs e) { CheckSpeed(e.Speed); }