Beispiel #1
0
        public void Deregister()
        {
            _stockMarket.StockTraded -= OnStockTraded;

            _stockMarket = null;
        }
Beispiel #2
0
        public void Register(StockMarket stockMarket)
        {
            stockMarket.StockTraded += OnStockTraded;

            _stockMarket = stockMarket;
        }