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