private void btnQLDanhSachKhachHang_ItemClick(object sender, ItemClickEventArgs e) { set_color_button("btnQLDanhSachKhachHang"); UI.uc_QLDanhSachKhachHang uc_QLDanhSachKhachHang = new UI.uc_QLDanhSachKhachHang(); uc_QLDanhSachKhachHang.Dock = DockStyle.Fill; panelMain.Controls.Clear(); panelMain.Controls.Add(uc_QLDanhSachKhachHang); uc_QLDanhSachKhachHang._user = _user; }
private void ribbonControl_SelectedPageChanged(object sender, EventArgs e) { if (ribbonControl.SelectedPage == tabQuanLy) { set_color_button("btnQLDanhSachKhachHang"); UI.uc_QLDanhSachKhachHang uc_QLDanhSachKhachHang = new UI.uc_QLDanhSachKhachHang(); uc_QLDanhSachKhachHang.Dock = DockStyle.Fill; panelMain.Controls.Clear(); uc_QLDanhSachKhachHang._user = _user; panelMain.Controls.Add(uc_QLDanhSachKhachHang); //GroupQLTang.Enabled = true; //GroupQLPhong.Enabled = true; //GroupQLTaiKhoan.Enabled = true; //groupQLToaNha.Enabled = false; } if (ribbonControl.SelectedPage == tabQuanTri) { set_color_button("btnQLLaiSuat"); UI.ucQLLaiSuat ucQLLaiSuat = new UI.ucQLLaiSuat(); ucQLLaiSuat.Dock = DockStyle.Fill; panelMain.Controls.Clear(); panelMain.Controls.Add(ucQLLaiSuat); //GroupQLTang.Enabled = true; //GroupQLPhong.Enabled = true; //GroupQLTaiKhoan.Enabled = true; //groupQLToaNha.Enabled = false; } if (ribbonControl.SelectedPage == tab_thong_ke) { set_color_button("btn_tkdt"); UI.uc_thongkedoanhthu uc_thongkedoanhthu = new UI.uc_thongkedoanhthu(); uc_thongkedoanhthu.Dock = DockStyle.Fill; panelMain.Controls.Clear(); panelMain.Controls.Add(uc_thongkedoanhthu); //GroupQLTang.Enabled = true; //GroupQLPhong.Enabled = true; //GroupQLTaiKhoan.Enabled = true; //groupQLToaNha.Enabled = false; } }