private void btnNew_Click(object sender, EventArgs e) { try { frmQuotationNew fQuotationNew = new frmQuotationNew((int)Constant.Mode.Insert, 0); fQuotationNew.ShowInTaskbar = false; fQuotationNew.ShowDialog(); btnClear_Click(sender, e); LoadList(); } catch (Exception exc) { Utill.Common.ExceptionLogger.writeException("Quotation -List", exc.StackTrace); MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception"); } }
private void btnDelete_Click(object sender, EventArgs e) { try { if (dgvSaleList.CurrentRow != null) { SetSortedColumns(); frmQuotationNew fSalesNew = new frmQuotationNew((int)Constant.Mode.Delete, Convert.ToInt64(dgvSaleList.CurrentRow.Cells["QuotationID"].Value)); fSalesNew.ShowInTaskbar = false; fSalesNew.ShowDialog(); setDefaultGridRecords(sender, e); } } catch (Exception exc) { Utill.Common.ExceptionLogger.writeException("Quotation -List", exc.StackTrace); MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception"); } }