Ejemplo n.º 1
0
        private void At_SubmitAuthority(object sender, AuthorityToolEventArgs e)
        {
            int authority = e.Authority;

            _ctcOffice.setTrainAuthorityRequest(_lastRightClickContainer.Train.TrainID,
                                                _lastRightClickContainer.Block.TrackCirID, authority,
                                                _lastRightClickContainer.Block);

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

            if (_authorityTool != null)
            {
                _authorityTool.ParentForm.Close();
            }
        }
Ejemplo n.º 2
0
        private void At_SubmitAuthority(object sender, AuthorityToolEventArgs e)
        {
            int authority = e.Authority;
            _ctcOffice.setTrainAuthorityRequest(_lastRightClickContainer.Train.TrainID,
                                                _lastRightClickContainer.Block.TrackCirID, authority,
                                                _lastRightClickContainer.Block);

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

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