public static IndirectLabourPriceInsert GetInstance() { if (ilpiform == null || ilpiform.IsDisposed) { ilpiform = new IndirectLabourPriceInsert(); } return(ilpiform); }
private void barButtonItem新增_ItemClick(object sender, ItemClickEventArgs e) { IndirectLabourPriceInsert Frm = IndirectLabourPriceInsert.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }
private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e) { if (savetype == "insert") { IndirectLabourPriceInsert.Save(); IndirectLabourPriceInsert.MyClose(); } else if (savetype == "update") { IndirectLabourPriceUpdate.Save(); IndirectLabourPriceUpdate.MyClose(); } }