void CarComunicator_evBrakePositionReceived(object sender, BrakePositionReceivedEventArgs args)
 {
     this.Dispatcher.Invoke(
         new Action<TextBlock, string>((textBox, val)
             => textBox.Text = val),
                 textBlock_currentBrake,
                 String.Format("{0:0.###}", args.GetPosition())
     );
 }
Ejemplo n.º 2
0
 private void CarComunicator_evBrakePositionReceived(object sender, BrakePositionReceivedEventArgs args)
 {
     Model.CarInfo.CurrentBrake = args.GetPosition();
 }