Пример #1
0
        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            if (f_DangNhap == null || f_DangNhap.IsDisposed)//dang nhap he thong
            {
                f_DangNhap = new frmDangNhap();
                //f_DangNhap.FormBorderStyle = FormBorderStyle.None;

                f_DangNhap.MdiParent = this;
            }
            f_DangNhap.Show();
            //loadData();
        }
Пример #2
0
 public void frmMain_Load(object sender, EventArgs e)
 {
     tsmBaoCao.Enabled              = false;
     tsmLuongBong.Enabled           = false;
     tsmThongTin.Enabled            = false;
     tsmTuyenDung.Enabled           = false;
     tsmTimKiem.Enabled             = false;
     toolStripMenuPhanQuyen.Enabled = false;
     if (frmDangNhap.TenDangNhap == null)
     {
         f_DangNhap           = new frmDangNhap();
         f_DangNhap.MdiParent = this;
         f_DangNhap.Show();
     }
     else
     {
         loadData();
     }
 }
Пример #3
0
        public void frmMain_Load(object sender, EventArgs e)
        {


            expandablePanel1ThanhChucNang.Enabled = true;
            toolStripBtnChiLuong.Enabled = false;
            toolStripBtnChamCong.Enabled = false;
            toolStripBtnHopDong.Enabled = false;
            toolStripBtnKhenThuong.Enabled = false;
            toolStripBtnNghiViec.Enabled = false;
            toolStripBtnTuyenDung.Enabled = false;
            toolStripBtnChucVu.Enabled = false;
            toolStripBtnNhanVien.Enabled = false;
            toolStripBtnUngVien.Enabled = false;
            tsmBaoCao.Enabled = false;
            tsmLuongBong.Enabled = false;
            tsmThongTin.Enabled = false;
            tsmTuyenDung.Enabled = false;
            tsmTimKiem.Enabled = false;
            sideBarPanelBaoCao.Enabled = false;
            sideBarPanelLuongBong.Enabled = false;
            sideBarPanelThongTin.Enabled = false;
            sideBarPanelTimKiem.Enabled = false;
            sideBarPanelTuyenDung.Enabled = false;
            toolStripMenuPhanQuyen.Enabled = false;
            if (frmDangNhap.TenDangNhap == null)
            {

                f_DangNhap = new frmDangNhap();
                //f_DangNhap.FormBorderStyle = FormBorderStyle.None;
                f_DangNhap.MdiParent = this;
                f_DangNhap.Show();


            }
            else
            {
                loadData();
            }
        }