示例#1
0
        public frmStockAdd(clsStockCollection stockCollection, frmStock frmStock)
        {
            InitializeComponent();

            this.stockCollection = stockCollection;
            formStock            = frmStock;
        }
示例#2
0
        private void stockListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //create an object based on frmStock
            frmStock AllStock = new frmStock();

            //make the object a child of the mdi parent
            AllStock.MdiParent = this;
            //make the form visible
            AllStock.Visible = true;
        }