public void SetStock(Stock stock) { OnNewStock(stock.Symbol, stock.Price, stock.DateRecieved); }
public void Notify(Stock stock) { if (stock.Code == "IBM") Console.WriteLine("Notified {0} of {1}'s " + "change to {2:C}", Name, stock.Code, stock.Price); }
public Email_Investor(string name,Stock stock) { this._name = name; this._stock = stock; }
public Mobile_Investor(string mobileNumber, Stock stock) { this._name = mobileNumber; this._stock = stock; }
public void Notify(Stock stock) { // Print value changed Console.WriteLine("Notified {0} of {1}'s " + "change to {2:C}", Name, stock.Code, stock.Price); }