public static UserDeptCheckInsert GetInstance() { if (diform == null || diform.IsDisposed) { diform = new UserDeptCheckInsert(); } return(diform); }
private void barButtonItem新增_ItemClick(object sender, ItemClickEventArgs e) { UserDeptCheckInsert Frm = UserDeptCheckInsert.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }