private void thietbiGUI_Load(object sender, EventArgs e) { quanlythietbiUC tb = new quanlythietbiUC(); tb.Dock = System.Windows.Forms.DockStyle.Fill; pnmain.Controls.Add(tb); }
private void btthietbi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { pnmain.Controls.Clear(); quanlythietbiUC tb = new quanlythietbiUC(); tb.Dock = System.Windows.Forms.DockStyle.Fill; pnmain.Controls.Add(tb); }