예제 #1
0
 private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     // waiting.ShowWaitForm();
     Forms.frmListMaterial_Update frm = new frmListMaterial_Update();
     //waiting.CloseWaitForm();
     frm.ShowDialog();
     if (frm.save)
     {
         tbMaterial_GetList();
     }
 }
예제 #2
0
 private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridItemDetail.FocusedRowHandle > -1)
     {
         //waiting.ShowWaitForm();
         string code = gridItemDetail.GetFocusedRowCellValue(colMaterialCode).ToString();
         Forms.frmListMaterial_Update frm = new frmListMaterial_Update(code);
         // waiting.CloseWaitForm();
         frm.ShowDialog();
         if (frm.save)
         {
             tbMaterial_GetList();
         }
     }
 }