Пример #1
0
        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);
        }
Пример #2
0
 private void Engine_SpeedChanged(object sender, SpeedChangedArgs e)
 {
     lSpeed.Text = e.Speed.ToString();
 }
Пример #3
0
 private void Engine_SpeedChanged(object sender, SpeedChangedArgs e)
 {
     CheckSpeed(e.Speed);
 }