void speedometer_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args) { SpeedInfoReceivedEventHander temp = evSpeedInfoReceived; if (temp != null) { temp(this, new SpeedInfoReceivedEventArgs(args.GetSpeedInfo())); } }
//handling external events void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args) { currentSpeedLocalCopy = args.GetSpeedInfo(); Logger.Log(this, String.Format("new current speed value acquired: {0}", args.GetSpeedInfo())); //this setter also sends event "evNewSpeedSettingCalculated" SpeedSteering = regulator.ProvideObjectCurrentValueToRegulator(currentSpeedLocalCopy); }
private void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args) { Model.CarInfo.CurrentSpeed = args.GetSpeedInfo(); }
void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args) { UpdateTextBlock(textBlock_currentSpeed, args.GetSpeedInfo(), currentSpeedLabelData); }