void CarComunicator_evGearPositionReceived(object sender, GearPositionReceivedEventArgs args) { this.Dispatcher.Invoke( new Action <Gear>((gear) => { textBlock_currentGear.Text = gear.ToString(); })); }
void CarComunicator_evGearPositionReceived(object sender, GearPositionReceivedEventArgs args) { Model.CarInfo.CurrentGear = args.GetGear(); }
void CarComunicator_evGearPositionReceived(object sender, GearPositionReceivedEventArgs args) { Model.CarInfo.CurrentGear = args.GetGear(); }
void CarComunicator_evGearPositionReceived(object sender, GearPositionReceivedEventArgs args) { this.Dispatcher.Invoke( new Action<Gear>((gear) => { textBlock_currentGear.Text = gear.ToString(); })); }