Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtTaikhoan.Text != "" && txtMatkhau.Text != "")
     {
         if (kiemtra() == true)
         {
             if (chucvu == "admin")
             {
                 nhoMatKhau();
                 QuanLyheDaNang f = new QuanLyheDaNang(txtTaikhoan.Text);
                 this.Hide();
                 f.ShowDialog();
                 this.Show();
                 txtMatkhau.Text = "";
             }
             if (chucvu == "Pha chế")
             {
                 nhoMatKhau();
                 HoaDon f = new HoaDon();
                 this.Hide();
                 f.ShowDialog();
                 this.Show();
             }
         }
         else
         {
             MessageBox.Show("Sai tài khoản hoặc mật khẩu!!");
         }
     }
     else
     {
         MessageBox.Show("Bạn chưa điền đủ thông tin!!");
     }
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            QuanLyheDaNang f = new QuanLyheDaNang();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }