/// <summary> /// Handles the Closed event of the Wizard 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 Wizard_Closed(object sender, EventArgs e) { InTransitWizard wizTransit = sender as InTransitWizard; if (wizTransit.HeaderId != System.Guid.Empty) { BindData(); this.Update(); } }
/// <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)) { InTransitWizard wizTransit = new InTransitWizard(); wizTransit.HeaderId = new System.Guid(listView.SelectedItem.Text); wizTransit.TxNumber = listView.SelectedItem.SubItems[1].Text; wizTransit.FromLocation = listView.SelectedItem.SubItems[2].Text; wizTransit.InTransitType = listView.SelectedItem.SubItems[5].Text; wizTransit.Closed += new EventHandler(Wizard_Closed); wizTransit.ShowDialog(); } } }