private void delete_Click(object sender, EventArgs e)
        {
            check chk = new check();

            chk.delete(Convert.ToInt32(id3.Text));
            MessageBox.Show("item Deleted !!");
            id3.Clear();
        }
        private void insert_Click(object sender, EventArgs e)
        {
            check chk = new check();

            chk.insert(item.Text, Convert.ToInt32(Price.Text));
            MessageBox.Show("item Inserted !!");
            item.Clear();
            Price.Clear();
        }
        private void update_Click(object sender, EventArgs e)
        {
            check chk = new check();

            chk.update(Convert.ToInt32(ID2.Text), item2.Text, Convert.ToInt32(price2.Text));
            MessageBox.Show("item Updated !!");
            ID2.Clear();
            item2.Clear();
            price2.Clear();
        }
Exemplo n.º 4
0
        private void login_Click(object sender, EventArgs e)
        {
            check chk      = new check();
            bool  logcheck = chk.login(user.Text, pass.Text);

            if (logcheck == true)
            {
                MessageBox.Show("You are Logged In");
                Usermenupage fm = new Usermenupage();
                fm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Username or Password is Incorrect !!");
            }
        }
Exemplo n.º 5
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 !!");
            }
        }