Beispiel #1
0
 //Xử lý nút thêm
 private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     waiting.ShowWaitForm();
     Forms.frmListSupplier_Update frm = new frmListSupplier_Update();
     frm.ShowDialog();
     tbSupplier_GetList();
     waiting.CloseWaitForm();
 }
 //Xử lý nút sửa
 private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridItemDetail.FocusedRowHandle > -1)
     {
         //waiting.ShowWaitForm();
         string code = gridItemDetail.GetFocusedRowCellValue(colSupplierCode).ToString();
         Forms.frmListSupplier_Update frm = new frmListSupplier_Update(code);
         //waiting.CloseWaitForm();
         frm.ShowDialog();
         if (frm.save)
         {
             tbSupplier_GetList();
         }
     }
 }