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

            if (temp != null)
            {
                temp(this, new SpeedInfoReceivedEventArgs(args.GetSpeedInfo()));
            }
        }
示例#4
0
        //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);
        }
示例#5
0
 private void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     Model.CarInfo.CurrentSpeed = args.GetSpeedInfo();
 }
示例#6
0
 private void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     Model.CarInfo.CurrentSpeed = args.GetSpeedInfo();
 }
示例#7
0
 void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     UpdateTextBlock(textBlock_currentSpeed, args.GetSpeedInfo(), currentSpeedLabelData);
 }
示例#8
0
 void CarComunicator_evSpeedInfoReceived(object sender, SpeedInfoReceivedEventArgs args)
 {
     UpdateTextBlock(textBlock_currentSpeed, args.GetSpeedInfo(), currentSpeedLabelData);
 }