Exemplo n.º 1
0
        //Used to add functionality for when a company name is selected in market by order
        private void MarketByOrderHandler(object sender, EventArgs e)
        {
            //item that will hold configurations
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
            //Create MDI window
            MarketByOrder newMDIChild = new MarketByOrder(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 Order (" + clickedItem.Name + ")";
            // Display the new form.
            newMDIChild.Show();
            data.notify();
        }
 //Used to add functionality for when a company name is selected in market by order
 private void MarketByOrderHandler(object sender, EventArgs e)
 {
     //item that will hold configurations
     ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
     //Create MDI window
     MarketByOrder newMDIChild = new MarketByOrder(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 Order ("+clickedItem.Name+")";
     // Display the new form.
     newMDIChild.Show();
     data.notify();
 }