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()) ); }
private void CarComunicator_evBrakePositionReceived(object sender, BrakePositionReceivedEventArgs args) { Model.CarInfo.CurrentBrake = args.GetPosition(); }