public static RoleInsert GetInstance() { if (stiform == null || stiform.IsDisposed) { stiform = new RoleInsert(); } return(stiform); }
private void barButtonItem新增_ItemClick(object sender, ItemClickEventArgs e) { RoleInsert Frm = RoleInsert.GetInstance(); Frm.TopLevel = false; //Frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }