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