Example #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmPurchaseIndentEntry fCustomer = new frmPurchaseIndentEntry((int)Constant.Mode.Insert, 0);
         fCustomer.ShowInTaskbar = false;
         fCustomer.ShowDialog();
         LoadList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Lead", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMessage1, "Warning");
     }
 }
Example #2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvInquiry.CurrentRow != null)
         {
             SetSortedColumns();
             frmPurchaseIndentEntry fCustomer = new frmPurchaseIndentEntry((int)Constant.Mode.Delete, (Int64)dgvInquiry.CurrentRow.Cells["Id"].Value);
             fCustomer.ShowDialog();
             setDefaultGridRecords(sender, e);
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Lead-List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }