Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public Bank(string name, Stock stock)
 {
     this.Name        = name;
     this.stock       = stock;
     stock.NewMarket += Stock_NewMarket;
 }
Exemplo n.º 3
0
 public Bank(string name, Stock stock)
 {
     this.Name               = name;
     this.stock              = stock;
     stock.StockInfoChanged += Update;
 }