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