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()); }
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); }