Exemple #1
0
        private void btn_Customerlogin_Click(object sender, EventArgs e)
        {
            Customer customer = new Customer();

            customer.SetName(txtb_cl_Username.Text);
            customer.SetPassword(txtb_cl_Pasword.Text);
            if (DbCustomer.is_account_exist(customer))
            {
                OpenPage.ActiveForm.Close();
            }
        }