public static DirectLabourPriceInsert GetInstance()
 {
     if (dlpiform == null || dlpiform.IsDisposed)
     {
         dlpiform = new DirectLabourPriceInsert();
     }
     return(dlpiform);
 }
Exemplo n.º 2
0
        private void barButtonItem新增_ItemClick(object sender, ItemClickEventArgs e)
        {
            DirectLabourPriceInsert Frm = DirectLabourPriceInsert.GetInstance();

            Frm.TopLevel = false;
            Frm.Parent   = this;
            Frm.Show();
            Frm.BringToFront();
        }
Exemplo n.º 3
0
 private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (savetype == "insert")
     {
         DirectLabourPriceInsert.Save();
         DirectLabourPriceInsert.MyClose();
     }
     else if (savetype == "update")
     {
         DirectLabourPriceUpdate.Save();
         DirectLabourPriceUpdate.MyClose();
     }
 }