예제 #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;
        }