Esempio n. 1
0
        private void ribbonControl_SelectedPageChanged(object sender, EventArgs e)
        {
            if (ribbonControl.SelectedPage == tabQuanLy)
            {
                UI.ucQLKhachHang ucQLKhachHang = new UI.ucQLKhachHang();
                ucQLKhachHang.Dock = DockStyle.Fill;
                panelMain.Controls.Clear();
                panelMain.Controls.Add(ucQLKhachHang);

                //GroupQLTang.Enabled = true;
                //GroupQLPhong.Enabled = true;
                //GroupQLTaiKhoan.Enabled = true;
                //groupQLToaNha.Enabled = false;
            }
            if (ribbonControl.SelectedPage == tabQuanTri)
            {
                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;
            }
        }
Esempio n. 2
0
 private void btnQLKhachHang_ItemClick(object sender, ItemClickEventArgs e)
 {
     set_color_button("btnQLKhachHang");
     UI.ucQLKhachHang uc_Customer = new UI.ucQLKhachHang();
     uc_Customer.Dock = DockStyle.Fill;
     panelMain.Controls.Clear();
     panelMain.Controls.Add(uc_Customer);
     uc_Customer._user = _user;
 }