コード例 #1
0
        private void applCmb_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (applCmb.SelectedIndex == 0)
            {
                aplSubCmb.Items.Clear();
                aplSubTyp.Text = "Change Type";
                aplSubCmb.Items.AddRange(new String[] { "from Domestic to Industrial", "from Industrial to Domestic" });
                aplSubCmb.Text = "Select change";
                makeVisible2();
            }
            else if (applCmb.SelectedIndex == 1)
            {
                aplSubTyp.Text = "Enlargement Type";
                aplSubCmb.Items.Clear();
                aplSubCmb.Items.AddRange(new String[] { "Type 1", "Type 2", "Type 3" });
                aplSubCmb.Text = "Select enlargement type";
                makeVisible2();
            }
            else if (applCmb.SelectedIndex == 2)
            {
                aplSubCmb.Visible = false;
                aplSubTyp.Visible = false;
                subm3.Visible     = false;
                refNum.Visible    = false;

                Contact ct;
                if (isCustomer)
                {
                    ct = Contact.createContact(accountNo);
                }
                else
                {
                    ct = Contact.createContact();
                }

                ct.Visible = true;
            }
        }