Exemple #1
0
 private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmLogin         = new FormLogin();
     frmLogin.frmMain = this;
     frmLogin.ShowDialog();
     if (m_chucvu == "admin")
     {
         MainEnabled();
     }
     else if (m_chucvu == "Quản lý")
     {
         MainEnQuanLy();
     }
     else
     {
         MainEnNhanVien();
     }
     labUser.Text = "Hi! " + m_username;
 }
Exemple #2
0
 private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmLogin = new FormLogin();
     frmLogin.frmMain = this;
     frmLogin.ShowDialog();
     if (m_chucvu == "admin")
     {
         MainEnabled();
     }
     else if (m_chucvu == "Quản lý")
     {
         MainEnQuanLy();
     }
     else
     {
         MainEnNhanVien();
     }
     labUser.Text = "Hi! " + m_username;
 }
Exemple #3
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     MainNoEnabled();
     frmLogin = new FormLogin();
     frmLogin.frmMain = this;
     frmLogin.ShowDialog();
     if (m_username == "")
     {
         Application.Exit();
     }
     if (m_chucvu == "admin")
     {
         MainEnabled();
     }
     else if (m_chucvu == "Quản lý")
     {
         MainEnQuanLy();
     }
     else
     {
         MainEnNhanVien();
     }
     labUser.Text = "Hi! " + m_username;
     capnhatphong();
 }