示例#1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (s2 == "")
     {
         search_customer try_again = new search_customer();
         try_again.Show();
         Hide();
     }
     else
     {
         Customer customer = new Customer();
         customer.Show();
         Hide();
     }
 }
示例#2
0
        private void Search_Click(object sender, EventArgs e)
        {
            search_customer sbar;

            if (textBox1.Text == "" || textBox1.Text == " ")
            {
                MessageBox.Show("ENTER THE ID TO BE SEARCHED", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            else
            {
                sbar = new search_customer(textBox1.Text); //uses constructor 2 of searchbar frm
                sbar.Show();
                Hide();
            }
        }
示例#3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked == true)
            {
                Customer op = new Customer();
                op.Show();
                Hide();
            }


            if (radioButton2.Checked == true)
            {
                search_customer ser = new search_customer();
                ser.Show();
                Hide();
            }

            if (radioButton4.Checked == true)
            {
                Bill op = new Bill();
                op.Show();
                Hide();
            }
        }