Esempio n. 1
0
        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.Hide();
            Thaotac tt = new Thaotac();

            tt.Show();
        }
Esempio n. 2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            ConnectDB_SQL connectDB = new ConnectDB_SQL();
            string        sUserName = txtUser.Text;
            string        sPass     = txtPassword.Text;
            Boolean       result    = true;

            result = connectDB.Fun_ConnectDB(sUserName, sPass);
            if (result)
            {
                MessageBox.Show("Đăng nhập thành công!✔ ");
                this.Hide();
                Thaotac tt = new Thaotac();
                tt.Show();
            }
            else
            {
                MessageBox.Show("Đăng nhập thất bại! Mời nhập đăng nhập lại!⛔");
            }
        }