Пример #1
0
        public StockToggleButtonActor(IActorRef stocksCoordinatorRef, StockToggleButtonViewModel stockToggleButtonViewModel, string stockSymbol)
        {
            _stocksCoordinatorRef       = stocksCoordinatorRef;
            _stockToggleButtonViewModel = stockToggleButtonViewModel;
            _stockSymbol = stockSymbol;

            ToggledOff();
        }
Пример #2
0
        public StockToggleButtonActor(IActorRef stocksCoordinatorRef, StockToggleButtonViewModel stockToggleButtonViewModel, string stockSymbol)
        {
            _stocksCoordinatorRef = stocksCoordinatorRef;
            _stockToggleButtonViewModel = stockToggleButtonViewModel;
            _stockSymbol = stockSymbol;

            ToggledOff();
        }
Пример #3
0
        private void CreateStockButtonViewModel(string stockSymbol)
        {
            var newViewModel = new StockToggleButtonViewModel(_stocksCoordinatorActorRef, stockSymbol);

            StockToggleButtonViewModels.Add(stockSymbol, newViewModel);
        }
Пример #4
0
        private void CreateStockButtonViewModel(string stockSymbol)
        {
            var newViewModel = new StockToggleButtonViewModel(_stocksCoordinatorActorRef, stockSymbol);

            StockToggleButtonViewModels.Add(stockSymbol, newViewModel);
        }