Exemplo n.º 1
0
        public StockToggleButtonActor(IActorRef stocksCoordinatorRef, StockToggleButtonViewModel stockToggleButtonViewModel, string stockSymbol)
        {
            _stocksCoordinatorRef       = stocksCoordinatorRef;
            _stockToggleButtonViewModel = stockToggleButtonViewModel;
            _stockSymbol = stockSymbol;

            ToggledOff();
        }
Exemplo n.º 2
0
        public StockToggleButtonActor(IActorRef stocksCoordinatorRef, StockToggleButtonViewModel stockToggleButtonViewModel, string stockSymbol)
        {
            _stocksCoordinatorRef = stocksCoordinatorRef;
            _stockToggleButtonViewModel = stockToggleButtonViewModel;
            _stockSymbol = stockSymbol;

            ToggledOff();
        }
Exemplo n.º 3
0
        private void CreateStockButtonViewModel(string stockSymbol)
        {
            var newViewModel = new StockToggleButtonViewModel(_stocksCoordinatorActorRef, stockSymbol);

            StockToggleButtonViewModels.Add(stockSymbol, newViewModel);
        }
Exemplo n.º 4
0
        private void CreateStockButtonViewModel(string stockSymbol)
        {
            var newViewModel = new StockToggleButtonViewModel(_stocksCoordinatorActorRef, stockSymbol);

            StockToggleButtonViewModels.Add(stockSymbol, newViewModel);
        }