Beispiel #1
0
        private void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (fscorelist == null)
            {
                return;
            }

            ListBox box   = (sender as ListBox);
            string  stock = box.SelectedItem.ToString();

            string[] tokens = stock.Split();

            // find the right stock from the entry (we added price, remember?)
            foreach (FScoreStock s in fscorelist.StockList)
            {
                if (tokens[0].Equals(s.Ticker))
                {
                    stock = s.Ticker;
                    break;
                }
            }

            // load up the stock and analize
            XFactorHandler xfh = new XFactorHandler(stock);
            // display the data
            XFactorUI xfui = new XFactorUI(xfh);

            xfui.Show();
        }
Beispiel #2
0
        private void listBox_holding_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListBox box = (sender as ListBox);

            if (box.SelectedItem == null)
            {
                return;
            }

            string stock = box.SelectedItem.ToString();

            // load up the stock and analize
            XFactorHandler xfh = new XFactorHandler(stock);
            // display the data
            XFactorUI xfui = new XFactorUI(xfh);

            xfui.Show();
        }