Exemple #1
0
        //Used to add functionality for when a company name is selected in market by price
        private void MarketByPriceHandler(object sender, EventArgs e)
        {
            //Item that will hold configuration
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
            //Create MDI window
            MarketByPrice newMDIChild = new MarketByPrice(clickedItem.Name);

            //Register the observer
            data.register(newMDIChild);
            // Set the parent form of the child window.
            newMDIChild.MdiParent = this;
            //Change name of the window
            newMDIChild.Text = "Market Depth By Price (" + clickedItem.Name + ")";
            // Display the new form.
            newMDIChild.Show();
            data.notify();
        }
 //Used to add functionality for when a company name is selected in market by price
 private void MarketByPriceHandler(object sender, EventArgs e)
 {
     //Item that will hold configuration
     ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
     //Create MDI window
     MarketByPrice newMDIChild = new MarketByPrice(clickedItem.Name);
     //Register the observer
     data.register(newMDIChild);
     // Set the parent form of the child window.
     newMDIChild.MdiParent = this;
     //Change name of the window
     newMDIChild.Text = "Market Depth By Price (" + clickedItem.Name + ")";
     // Display the new form.
     newMDIChild.Show();
     data.notify();
 }