Beispiel #1
0
        public sellingOrder(Object sub)
        {
            concreteSub = (RealtimeData)sub;

            InitializeComponent();

            foreach (company company in concreteSub.getCompanies())
            {
                this.comboBox1.Items.Add(company.Name);
            }
            comboBox1.SelectedIndex = 0;
        }
Beispiel #2
0
        private void beginTradingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            concreteSub = new RealtimeData();

            concreteSub.addCompany("MSFT", "Microsoft Corporation", 46.13);
            concreteSub.addCompany("AAPL", "Apple Inc.", 105.22);
            concreteSub.addCompany("FB", "Facebook Inc.", 80.67);

            this.orderToolStripMenuItem.Visible        = true;
            this.watchToolStripMenuItem.Visible        = true;
            this.beginTradingToolStripMenuItem.Enabled = false;
            this.marketClosedToolStripMenuItem.Text    = "&Market <<Open>>";

            watchSSMenu(this.marketByOrderToolStripMenuItem1);
            watchSSMenu(this.marketByPriceToolStripMenuItem1);
        }