private void button2_Click(object sender, EventArgs e) { frmBranchList frmBranchList = new frmBranchList(); frmBranchList.MdiParent = this; frmBranchList.Show(); }
//Danh mục chi nhánh private void btnItem_ChiNhanh_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 frmBranchList(); f.Name = f.GetType().ToString(); e.Item.Tag = f.Name; f.MdiParent = this; f.Show(); SplashScreenManager.CloseForm(); } }