private void toolStripButtonAdd_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { frmReviewOptionApprove frm = new frmReviewOptionApprove(); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void toolStripButtonEdit_Click(object sender, EventArgs e) { if (enforceLawGridViewReviewOptionApprove.SelectedRows.Count == 0) return; if (enforceLawGridViewReviewOptionApprove.SelectedRows[0].Tag == null) return; UseWaitCursor = true; Application.DoEvents(); try { ReviewOptionApprove reviewOptionApprove = enforceLawGridViewReviewOptionApprove.SelectedRows[0].Tag as ReviewOptionApprove; frmReviewOptionApprove frm = new frmReviewOptionApprove(reviewOptionApprove); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }