Exemplo n.º 1
0
        private void xeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            lblTitle.Text = "Quản lý xe vận chuyển";
            UCCar uc = new UCCar();

            addControlToPanel(uc);
        }
Exemplo n.º 2
0
        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);
        }