private void toolStripButtonAdd_Click_1(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { frmInstrumentsExample frm = new frmInstrumentsExample(); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void toolStripButtonEdit_Click(object sender, EventArgs e) { if (enforceLawGridViewInstrumentsExample.SelectedRows.Count == 0) return; if (enforceLawGridViewInstrumentsExample.SelectedRows[0].Tag == null) return; UseWaitCursor = true; Application.DoEvents(); try { InstrumentsExample InstrumentsExample = enforceLawGridViewInstrumentsExample.SelectedRows[0].Tag as InstrumentsExample; frmInstrumentsExample frm = new frmInstrumentsExample(InstrumentsExample); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void toolStripButtonAdd_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { frmInstrumentsExample frm = new frmInstrumentsExample(Convert.ToInt32(((ComboBoxItemTextValue)(this.comboBox1.SelectedItem)).selectValue), Convert.ToInt32(((ComboBoxItemTextValue)(this.comboBox2.SelectedItem)).selectValue)); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }