Esempio n. 1
0
 public static IEnumerable<Stock> getNext()
 {
     for (int i = 0; i < samplePrices.Length; i++)
     {
         Stock s = new Stock();
         s.Symbol = sampleStocks[i];
         s.Price = samplePrices[i];
         yield return s;
     }
 }
Esempio n. 2
0
 public void Update(Stock stock)
 {
     Console.WriteLine("Notified {0} of {1}'s " +
       "change to {2:C}", _name, stock.Symbol, stock.Price);
 }
Esempio n. 3
0
 public void Actualizar(Stock s)
 {
     MessageBox.Show("Notificado: " + nombre + " " + s.Producto + " cambio precio a " + s.Precio);
 }
Esempio n. 4
0
 public void Update(Stock stock)
 {
     Console.WriteLine("Notified {0} of {1}'s " + "change to {2:C}", _name, stock.Symbol, stock.Price);
 }
Esempio n. 5
0
 public void Update(Stock stock)
 {
     Console.WriteLine("Notified " + name + " of " + stock.Symbol + "'s change to " + stock.Price);
 }
Esempio n. 6
0
 public void Update(Stock stock)
 {
     Console.WriteLine($"Notified to {Name} that Stock {stock.Name} changed to {stock.Price}");
 }
Esempio n. 7
0
 public void Update(Stock stock)
 {
     MessageBox.Show("Notified _name of stock.Symbol change to " + stock.Price);
 }