Esempio n. 1
0
        public TabMenu()
        {
            InitializeComponent();
            //nhanvien
            frmNhanVien frm = new frmNhanVien();

            frm.TopLevel        = false;
            frm.Visible         = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[0].Controls.Add(frm);

            //chucvu
            frmChucVu frmnv = new frmChucVu();

            frmnv.TopLevel        = false;
            frmnv.Visible         = true;
            frmnv.FormBorderStyle = FormBorderStyle.None;
            frmnv.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[1].Controls.Add(frmnv);

            //phongban

            frmPhongBan pb = new frmPhongBan();

            pb.TopLevel        = false;
            pb.Visible         = true;
            pb.FormBorderStyle = FormBorderStyle.None;
            pb.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[2].Controls.Add(pb);

            //luong
            frmLuong luong = new frmLuong();

            luong.TopLevel        = false;
            luong.Visible         = true;
            luong.FormBorderStyle = FormBorderStyle.None;
            luong.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[3].Controls.Add(luong);

            //chamcong
            frmChamCong cc = new frmChamCong();

            cc.TopLevel        = false;
            cc.Visible         = true;
            cc.FormBorderStyle = FormBorderStyle.None;
            cc.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[4].Controls.Add(cc);

            //TongLuong
            frmTongLuong tl = new frmTongLuong();

            tl.TopLevel        = false;
            tl.Visible         = true;
            tl.FormBorderStyle = FormBorderStyle.None;
            tl.Dock            = DockStyle.Fill;
            xtraTabControl1.TabPages[5].Controls.Add(tl);
        }
Esempio n. 2
0
        private void btn_cv_Click(object sender, EventArgs e)
        {
            frmChucVu cv = new frmChucVu();

            cv.Show();
        }