private void săpXêpTourToolStripMenuItem_Click(object sender, EventArgs e) { lblTitle.Text = "Phân bổ xe theo tour"; //UCBookCar uc = new UCBookCar(); UCTempBookCar uc = new UCTempBookCar(); addControlToPanel(uc); }
private void barBtnPhanXe_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraUserControl xtraUserControl = new UCTempBookCar(); xtraUserControl.Name = barBtnPhanXe.Name + "UControl"; xtraUserControl.Text = barBtnPhanXe.Caption; xtraUserControl.Dock = DockStyle.Fill; lblCurrent.Caption = "Phân bổ xe theo tour"; addTab(xtraUserControl); }