Example #1
0
        public KPIDynamicViewModel(IEventAggregator messageBus, IPokemonStatRepository pokemonStatRepository, IPokedexRepository pokedexRepository)
            : base(messageBus)
        {
            _pokemonStatRepository = pokemonStatRepository;
            _pokedexRepository = pokedexRepository;

            KPIDynamicLoaded = new DelegateCommand(async () => await OnKPIDynamicLoaded());
            SaveCommand = new DelegateCommand(async () => await OnSaveCommand());
        }
Example #2
0
        public ChartViewModel(IEventAggregator messageBus, IPokemonStatRepository pokemonStatRepository, IPokedexRepository pokedexRepository)
            : base(messageBus)
        {
            _pokemonStatRepository = pokemonStatRepository;
            _pokedexRepository = pokedexRepository;

            KPIDynamicLoaded = new DelegateCommand(async () => await OnKPIDynamicLoaded());
            SaveCommand = new DelegateCommand(async () => await OnSaveCommand());
            Stat1SelectionChangedCommand = new DelegateCommand<Pokedex>(OnStat1SelectionChanged);
            Stat2SelectionChangedCommand = new DelegateCommand<Pokedex>(OnStat2SelectionChanged);
        }