Beispiel #1
0
        private void btnFind_Matrix_Click(object sender, EventArgs e)
        {
            string[] temp = stkCode.Trim().Split(' ');

            MatrixDetail prodMatrix = new MatrixDetail();

            prodMatrix.StockCode  = temp[0];
            prodMatrix.TxType     = this.TxType;
            prodMatrix.ResultList = this.ResultList;
            prodMatrix.Closed    += new EventHandler(prodMatrix_Closed);
            prodMatrix.ShowDialog();
        }
Beispiel #2
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);
                        }
                    }
                }
            }
        }