Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CustomerControl myc           = new CustomerControl();
            bool            authenticated = myc.checkCustomerPassword(cusEmail.Text, cusPassword.Text);

            if (!authenticated)
            {
                MessageBox.Show(myc.Message);
                return;
            }
            CustomerMenu myCustomerMenu = new CustomerMenu();

            myCustomerMenu.Show();
            this.Hide();
        }