コード例 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            string    lastname = textBox7.Text;
            ConnectDB obj      = new ConnectDB();
            Customer  result   = new Customer();

            result = obj.SelectCustomerLastName(lastname);

            customerSearch form = new customerSearch(result);

            form.Show();
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            string    number = textBox6.Text;
            ConnectDB obj    = new ConnectDB();
            Customer  result = new Customer();

            result = obj.SelectCustomerPhone(number);

            customerSearch form = new customerSearch(result);

            form.Show();
        }