示例#1
0
        private void St_SubmitSpeed(object sender, SpeedToolEventArgs e)
        {
            double speed = e.Speed;

            _ctcOffice.setTrainSpeedRequest(_lastRightClickContainer.Train.TrainID,
                                            _lastRightClickContainer.Block.TrackCirID, speed,
                                            _lastRightClickContainer.Block);

            MessageBox.Show("New Speed Request Sent");

            if (_speedTool != null)
            {
                _speedTool.ParentForm.Close();
            }
        }
        private void St_SubmitSpeed(object sender, SpeedToolEventArgs e)
        {
            double speed = e.Speed;

            _ctcOffice.setTrainSpeedRequest(_lastRightClickContainer.Train.TrainID,
                                            _lastRightClickContainer.Block.TrackCirID, speed,
                                            _lastRightClickContainer.Block);

            MessageBox.Show("New Speed Request Sent");

            if (_speedTool != null)
            {
                _speedTool.ParentForm.Close();
            }
        }