void wizSupplier_Closed(object sender, EventArgs e) { RT2020.Purchasing.Wizard.Receiving pohList = sender as RT2020.Purchasing.Wizard.Receiving; if (pohList.ReceivingHeaderId != System.Guid.Empty) { BindList(); this.Update(); } }
private void ShowItem() { if (lvList.SelectedItem != null) { Guid id = Guid.Empty; if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out id)) { RT2020.Purchasing.Wizard.Receiving phoList = new RT2020.Purchasing.Wizard.Receiving(id); phoList.Closed += new EventHandler(wizSupplier_Closed); phoList.ShowDialog(); } } }