예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            HeThong ht = new HeThong();

            ht.ShowDialog();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            HeThong HT = new HeThong();

            HT.ShowDialog();
        }
예제 #3
0
        private void HệThốngToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Hide();
            HeThong ht = new HeThong();

            ht.ShowDialog();
        }
예제 #4
0
 private void Button_dangnhap_Click(object sender, EventArgs e)
 {
     if (this.txtDangNhap.Text.Length == 0 || this.txtMatKhau.Text.Length == 0)
     {
         MessageBox.Show(" Vui lòng nhập tài khoản ! ");
     }
     else
     {
         conn.Open();
         string     sqlcmd = "select count(*) from TaiKhoan where taikhoan='" + txtDangNhap.Text + "' and matkhau='" + txtMatKhau.Text + "'";
         SqlCommand cmd    = new SqlCommand(sqlcmd, conn);
         string     kq     = cmd.ExecuteScalar().ToString();
         conn.Close();
         if (kq == "1")
         {
             this.Hide();
             HeThong ht = new HeThong();
             ht.ShowDialog();
         }
         else
         {
             MessageBox.Show("Tài Khoản và Mật khẩu sai ! \nVui lòng nhập lại !", "Thông báo");
         }
     }
 }
예제 #5
0
 private void Button_bh_quaylai_Click(object sender, EventArgs e)
 {
     if (exit == false)
     {
         DialogResult thongbao;
         thongbao = (MessageBox.Show("Bạn chưa thanh toán hóa đơn ! \n Bạn có muốn lưu ?", "Chú ý", MessageBoxButtons.YesNo, MessageBoxIcon.Warning));
         if (thongbao == DialogResult.Yes)
         {
             MessageBox.Show("Vui lòng nhấn nút thanh toán !");
         }
         else
         {
             this.Hide();
             HeThong ht = new HeThong();
             ht.ShowDialog();
         }
     }
     else
     {
         this.Hide();
         HeThong ht = new HeThong();
         ht.ShowDialog();
     }
 }