예제 #1
0
        // On this click validate the data
        private void btnSendACT_Click(object sender, EventArgs e)
        {
            ACT ACTtoSend = new ACT();

            ACTtoSend.Populate(
                //Aircraft_Identifincation_IN,
            this.textBoxACID.Text,
                // SSR_Mode_And_Code_IN,
            this.textBoxSSR_ModeandCode.Text,
                // ADEP_IN,
            this.comboBoxADEP.Text,
                // COP_IN,
            this.comboBoxCOP.Text,
                // Time_At_COP_IN
            this.textBoxTimeAtCOP.Text,
                // FL_AT_COP
            this.comboBoxFLAtCOP.Text,
                // ADES_IN,
            this.comboBoxADES.Text,
                // Aircraft_Number_and_Type_IN,
            this.comboBoxACNumandtype.Text,
                // Type_Of_Flight_IN,
            this.comboBoxTypeofFlight.Items[this.comboBoxTypeofFlight.SelectedIndex].ToString(),
                // Equipment_Capability_And_Status_IN
            this.comboBoxRVSMEQuiped.Items[this.comboBoxRVSMEQuiped.SelectedIndex].ToString(),
            this.radioButtonABI.Checked);

            // Now send the data
            ACTtoSend.SendData();

            if (this.checkBoxResetFields.Checked == true)
            {
                this.textBoxACID.Text = "";

                // SSR_Mode_And_Code_IN
                this.textBoxSSR_ModeandCode.Text = "";

                // ADEP_IN
                if (this.comboBoxADEP.Items.Count > 1)
                {
                    this.comboBoxADEP.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxADEP.Text = "";
                }

                // COP_IN
                if (this.comboBoxCOP.Items.Count > 1)
                {
                    this.comboBoxCOP.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxCOP.Text = "";
                }

                // Time_At_COP_IN
                this.textBoxTimeAtCOP.Text = "";

                // FL_AT_COP
                this.comboBoxFLAtCOP.SelectedIndex = 11;

                // ADES_IN,
                if (this.comboBoxADES.Items.Count > 1)
                {
                    this.comboBoxADES.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxADES.Text = "";
                }

                // Aircraft_Number_and_Type_IN
                if (this.comboBoxACNumandtype.Items.Count > 1)
                {
                    this.comboBoxACNumandtype.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxACNumandtype.Text = "";
                }

                // Type_Of_Flight_IN
                this.comboBoxTypeofFlight.SelectedIndex = 0;

                // Equipment_Capability_And_Status_IN
                this.comboBoxRVSMEQuiped.SelectedIndex = 0;

            }
        }
예제 #2
0
        // On this click validate the data
        private void btnSendACT_Click(object sender, EventArgs e)
        {
            ACT ACTtoSend = new ACT();

            ACTtoSend.Populate(
                //Aircraft_Identifincation_IN,
                this.textBoxACID.Text,
                // SSR_Mode_And_Code_IN,
                this.textBoxSSR_ModeandCode.Text,
                // ADEP_IN,
                this.comboBoxADEP.Text,
                // COP_IN,
                this.comboBoxCOP.Text,
                // Time_At_COP_IN
                this.textBoxTimeAtCOP.Text,
                // FL_AT_COP
                this.comboBoxFLAtCOP.Text,
                // ADES_IN,
                this.comboBoxADES.Text,
                // Aircraft_Number_and_Type_IN,
                this.comboBoxACNumandtype.Text,
                // Type_Of_Flight_IN,
                this.comboBoxTypeofFlight.Items[this.comboBoxTypeofFlight.SelectedIndex].ToString(),
                // Equipment_Capability_And_Status_IN
                this.comboBoxRVSMEQuiped.Items[this.comboBoxRVSMEQuiped.SelectedIndex].ToString(),
                this.radioButtonABI.Checked);

            // Now send the data
            ACTtoSend.SendData();

            if (this.checkBoxResetFields.Checked == true)
            {
                this.textBoxACID.Text = "";

                // SSR_Mode_And_Code_IN
                this.textBoxSSR_ModeandCode.Text = "";

                // ADEP_IN
                if (this.comboBoxADEP.Items.Count > 1)
                {
                    this.comboBoxADEP.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxADEP.Text = "";
                }

                // COP_IN
                if (this.comboBoxCOP.Items.Count > 1)
                {
                    this.comboBoxCOP.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxCOP.Text = "";
                }

                // Time_At_COP_IN
                this.textBoxTimeAtCOP.Text = "";

                // FL_AT_COP
                this.comboBoxFLAtCOP.SelectedIndex = 11;

                // ADES_IN,
                if (this.comboBoxADES.Items.Count > 1)
                {
                    this.comboBoxADES.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxADES.Text = "";
                }

                // Aircraft_Number_and_Type_IN
                if (this.comboBoxACNumandtype.Items.Count > 1)
                {
                    this.comboBoxACNumandtype.SelectedIndex = 0;
                }
                else
                {
                    this.comboBoxACNumandtype.Text = "";
                }

                // Type_Of_Flight_IN
                this.comboBoxTypeofFlight.SelectedIndex = 0;

                // Equipment_Capability_And_Status_IN
                this.comboBoxRVSMEQuiped.SelectedIndex = 0;
            }
        }