コード例 #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            if (ComboBox7.Text == "")
            {
                EP.SetError(ComboBox7, "Select the Comport first");
                GroupBox3.BringToFront();
                GroupBox2.SendToBack();
                Button3.Enabled = false;
                return;
            }
            if (ComboBox18.Text == "")
            {
                EP.SetError(ComboBox18, "Select the Comport first");
                GroupBox3.BringToFront();
                GroupBox2.SendToBack();
                Button3.Enabled = false;
                return;
            }
            if (ComboBox19.Text == "")
            {
                EP.SetError(ComboBox19, "Select the Comport first");
                GroupBox3.BringToFront();
                GroupBox2.SendToBack();
                Button3.Enabled = false;
                return;
            }
            if (ComboBox21.Text == "")
            {
                EP.SetError(ComboBox21, "Select the Comport first");
                GroupBox3.BringToFront();
                GroupBox2.SendToBack();
                Button3.Enabled = false;
                return;
            }

            Button3.Enabled = true;
            EP.Clear();
            Save_File();
        }
コード例 #2
0
 private void button6_Click(object sender, EventArgs e)
 {
     GroupBox2.SendToBack();
     GroupBox3.BringToFront();
 }