Esempio n. 1
0
        public void Deregister()
        {
            _stockMarket.StockTraded -= OnStockTraded;

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

            _stockMarket = stockMarket;
        }