Exemplo n.º 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmItemAdjustEntry fItemAdjustment = new frmItemAdjustEntry((int)Constant.Mode.Insert, 0);
         fItemAdjustment.ShowDialog();
         LoadList();
         btnClear_Click(sender, e);
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("ItemAdjustment", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Exemplo n.º 2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvItemAdjustment.CurrentRow != null)
         {
             SetSortedColumns();
             frmItemAdjustEntry fItemAdjustment = new frmItemAdjustEntry((int)Constant.Mode.Delete, Convert.ToInt64(dgvItemAdjustment.CurrentRow.Cells["AdjustmentID"].Value));
             fItemAdjustment.ShowDialog();
             setDefaultGridRecords(sender, e);
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("ItemAdjustment", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }