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