//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); }
void speedometer_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args) { SpeedInfoReceivedEventHander temp = evSpeedInfoReceived; if (temp != null) { temp(this, new SpeedInfoReceivedEventArgs(args.GetSpeedInfo())); } }
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); }