private void btnDanhMucCa_ItemClick(object sender, ItemClickEventArgs e) { string typeName = e.Item.Tag == null ? string.Empty : e.Item.Tag.ToString(); Form f = GetMdiFormByName(typeName); if (f != null) { f.BringToFront(); } else { SplashScreenManager.ShowForm(typeof(WaitFormMain)); f = new FrmDanhMucCa(); f.Name = f.GetType().ToString(); e.Item.Tag = f.Name; f.MdiParent = this; f.Show(); SplashScreenManager.CloseForm(); } }
private void btnCaLamViec_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form f = new FrmDanhMucCa(); f.ShowDialog(); }