static void Main(string[] args) { var stockI = new Solution.StockInfo(100, 100); var stock = new Task3.Solution.Stock(stockI); var bank = new Task3.Solution.Bank("adc", stock); var broker = new Task3.Solution.Broker("bcd", stock); stock.Market(); }
public Bank(string name, Stock stock) { this.Name = name; this.stock = stock; stock.NewMarket += Stock_NewMarket; }
public Bank(string name, Stock stock) { this.Name = name; this.stock = stock; stock.StockInfoChanged += Update; }