public static DirectLabourPriceUpdate GetInstance() { if (dlpuform == null || dlpuform.IsDisposed) { dlpuform = new DirectLabourPriceUpdate(); } dlpuform.ShowDetail(); return(dlpuform); }
private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e) { if (savetype == "insert") { DirectLabourPriceInsert.Save(); DirectLabourPriceInsert.MyClose(); } else if (savetype == "update") { DirectLabourPriceUpdate.Save(); DirectLabourPriceUpdate.MyClose(); } }
private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e) { string month = DirectLabourPriceQuery.GetMonth(); if (month != "") { DirectLabourPriceUpdate Frm = DirectLabourPriceUpdate.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } }