Exemplo n.º 1
0
        private void prodMatrix_Closed(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.OK)
            {
                MatrixDetail prodMatrix = sender as MatrixDetail;
                if (prodMatrix != null)
                {
                    this.ResultList = prodMatrix.ResultList;

                    if (this.Parent.Parent.Parent != null)
                    {
                        IWizard wizard = this.Parent.Parent.Parent as IWizard;
                        if (wizard != null)
                        {
                            wizard.AddItemByList(this.ResultList);
                        }
                    }
                }
            }
        }