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