Beispiel #1
0
        //Method spawns a stock state summary window when that button is clicked
        private void stockStateSumaryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockStateSummary newMDIChild = new StockStateSummary();

            //Register the observer
            data.register(newMDIChild);
            // Set the parent form of the child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
            data.notify();
        }
 //Method spawns a stock state summary window when that button is clicked
 private void stockStateSumaryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StockStateSummary newMDIChild = new StockStateSummary();
     //Register the observer
     data.register(newMDIChild);
     // Set the parent form of the child window.
     newMDIChild.MdiParent = this;
     // Display the new form.
     newMDIChild.Show();
     data.notify();
 }