Пример #1
0
        /// <summary>
        /// Load button click handler.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PilotDataLoaderForm_Load(object sender, EventArgs e)
        {
            cmboxTourType.Items.Add(SelectTourTypeText);

            foreach (var tour in Registry.TourDefinitions.Tours.Keys)
            {
                cmboxTourType.Items.Add(tour);
            }

            cmboxTourType.SelectedIndex = 0;

            cmbBoxSquadSelect.Items.Add(NotSelectedText);
            foreach (var squadName in Registry.SquadNamesSet)
            {
                cmbBoxSquadSelect.Items.Add(squadName);
            }

            cmbBoxSquadSelect.SelectedItem = NotSelectedText;

            EnableLoadButton(false);

            _updateProgressCallBack = UpdateProgressCallBack;
            _loadCompletedCallBack  = LoadCompletedCallBack;
            _loaderThreadStart      = LoaderThreadEntryPoint;

            txtbxStartTour.Enabled = false;
            txtbxEndTour.Enabled   = false;
        }
Пример #2
0
        /// <summary>
        /// Load button click handler.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PilotDataLoaderForm_Load(object sender, EventArgs e)
        {
            this.cmboxTourType.Items.Add(_selectTourTypeText);
            foreach (string tour in Registry.Instance.TourDefinitions.Tours.Keys)
            {
                this.cmboxTourType.Items.Add(tour);
            }

            this.cmboxTourType.SelectedIndex = 0;

            this.cmbBoxSquadSelect.Items.Add(_notSelectedText);
            foreach(string squadName in Registry.Instance.SquadNamesSet)
            {
                this.cmbBoxSquadSelect.Items.Add(squadName);
            }
            this.cmbBoxSquadSelect.SelectedItem = _notSelectedText;

            EnableLoadButton(false);

            _UpdateProgressCallBack = new UpdateProgressCallBackDelegate(UpdateProgressCallBack);
            _LoadCompletedCallBack = new LoadCompletedCallBackDelegate(LoadCompletedCallBack);

            _LoaderThreadStart = new ParameterizedThreadStart(this.LoaderThreadEntryPoint);

            this.txtbxStartTour.Enabled = false;
            this.txtbxEndTour.Enabled = false;
        }