Exemplo n.º 1
0
        private void customer_Click(object sender, EventArgs e)
        {
            userloginpage frm = new userloginpage();

            frm.Show();
            this.Hide();
        }
        private void logout_Click(object sender, EventArgs e)
        {
            MessageBox.Show("You Have Been Logged Out");
            userloginpage up = new userloginpage();

            up.Show();
            this.Hide();
        }
        private void logout_Click(object sender, EventArgs e)
        {
            conn.Open();
            SqlCommand cmd = new SqlCommand("delete from table_5", conn);

            cmd.ExecuteNonQuery();
            SqlCommand cmad = new SqlCommand("delete from table_6", conn);

            cmad.ExecuteNonQuery();
            conn.Close();
            MessageBox.Show("You Have Been logged Out");
            userloginpage up = new userloginpage();

            up.Show();
            this.Hide();
        }
Exemplo n.º 4
0
        private void submit_Click(object sender, EventArgs e)
        {
            check chk = new check();

            chk.signup(newuser.Text, newpass.Text);

            if (newuser.Text != "" && newpass.Text != "" && newuser.Text != newpass.Text)
            {
                MessageBox.Show("You have successfully signup !!");
                userloginpage up = new userloginpage();
                up.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Error !!");
            }
        }