コード例 #1
0
        //Menu ngang

        private void btnTrangChu_Above_ItemClick(object sender, ItemClickEventArgs e)
        {
            pnMain.Controls.Clear();
            UC_TrangChu uc = new UC_TrangChu();

            uc.Dock = DockStyle.Fill;
            pnMain.Controls.Add(uc);
        }
コード例 #2
0
        ///Menu dọc
        ///
        private void btnTrangChu_Left_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            pnMain.Controls.Clear();
            UC_TrangChu uc = new UC_TrangChu();

            uc.Dock = DockStyle.Fill;
            pnMain.Controls.Add(uc);
        }
コード例 #3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            LoadInfoUser();
            pnMain.Controls.Clear();
            UC_TrangChu uc = new UC_TrangChu();

            uc.Dock = DockStyle.Fill;
            pnMain.Controls.Add(uc);
        }