Пример #1
0
 private void btnDuLieu_Click(object sender, EventArgs e)
 {
     if (login)
     {
         frmDuLieu duLieu = new frmDuLieu();
         duLieu.ShowDialog();
     }
     else
     {
         this.Hide();
         frmDangNhap dangNhap = new frmDangNhap();
         dangNhap.ShowDialog();
         this.Close();
     }
 }
Пример #2
0
 private void btnBaoCao_Click(object sender, EventArgs e)
 {
     if (login)
     {
         frmChonBaoCao chonBaoCao = new frmChonBaoCao();
         chonBaoCao.ShowDialog();
     }
     else
     {
         this.Hide();
         frmDangNhap dangNhap = new frmDangNhap();
         dangNhap.ShowDialog();
         this.Close();
     }
 }