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