Esempio n. 1
0
        public void AddStock(string symbol)
        {
            Stock newStock = new Stock()
            {
                Name = symbol
            };

            if (!Stocks.Contains(newStock))
            {
                Stocks.Add(newStock);
            }
            SelectedStock = Stocks.First(Stock => Stock.Name == newStock.Name);
        }