private void btnNew_Click(object sender, EventArgs e) { try { frmTaxClassEntry ftaxclassEntry = new frmTaxClassEntry((int)Common.Constant.Mode.Insert, 0); ftaxclassEntry.ShowDialog(); LoadList(); } catch (Exception exc) { Utill.Common.ExceptionLogger.writeException("Tax Class", exc.StackTrace); MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception"); } }
private void btnEdit_Click(object sender, EventArgs e) { try { if (dgvTaxClass.CurrentRow != null) { SetSortedColumns(); frmTaxClassEntry ftaxclassEntry = new frmTaxClassEntry((int)Common.Constant.Mode.Modify, (Int64)dgvTaxClass.CurrentRow.Cells["TaxClassID"].Value); ftaxclassEntry.ShowDialog(); setDefaultGridRecords(sender, e); } } catch (Exception exc) { Utill.Common.ExceptionLogger.writeException("Tax Class", exc.StackTrace); MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception"); } }