/// <summary> /// Handles the Click event of the btnAddNew control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void btnAddNew_Click(object sender, EventArgs e) { if (RT2020.DAL.Common.Utility.IsGUID(cboFromLocation.SelectedValue.ToString())) { SpecialRequestWizard wizSR = new SpecialRequestWizard(); wizSR.FromLocation = new System.Guid(cboFromLocation.SelectedValue.ToString()); wizSR.Closed += new EventHandler(Wizard_Closed); wizSR.ShowDialog(); } }
/// <summary> /// Handles the DoubleClick event of the listView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void listView_DoubleClick(object sender, EventArgs e) { if (listView.SelectedItem != null) { if (RT2020.DAL.Common.Utility.IsGUID(listView.SelectedItem.Text)) { SpecialRequestWizard wizSR = new SpecialRequestWizard(); wizSR.HeaderId = new System.Guid(listView.SelectedItem.Text); wizSR.Closed += new EventHandler(Wizard_Closed); wizSR.ShowDialog(); } } }