Ejemplo n.º 1
0
 private void btnEditUOM_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvUOM.CurrentRow != null)
         {
             frmUOMEntry fUOM = new frmUOMEntry((int)Common.Constant.Mode.Modify, (Int64)dgvUOM.CurrentRow.Cells["UOMID"].Value);
             fUOM.ShowDialog();
             LoadUOMList();
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("UOM - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Ejemplo n.º 2
0
 private void btnNewUOM_Click(object sender, EventArgs e)
 {
     try
     {
         frmUOMEntry fUOM = new frmUOMEntry((int)Common.Constant.Mode.Insert, 0);
         fUOM.ShowDialog();
         LoadUOMList();
         if (dgvUOM.Rows.Count > 0)
         {
             dgvUOM.CurrentCell = dgvUOM.Rows[0].Cells[0];
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("UOM - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }