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