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