private void xeToolStripMenuItem_Click(object sender, EventArgs e) { lblTitle.Text = "Quản lý xe vận chuyển"; UCCar uc = new UCCar(); addControlToPanel(uc); }
private void barBtnCar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraUserControl xtraUserControl = new UCCar(); xtraUserControl.Name = barBtnCar.Name + "UControl"; xtraUserControl.Text = barBtnCar.Caption; xtraUserControl.Dock = DockStyle.Fill; lblCurrent.Caption = "Dữ liệu xe"; addTab(xtraUserControl); }