public PageOneViewModel(IDialogCoordinator dialogService, IAnimalSoundService animalSoundService) { _dialogService = dialogService; _animalSoundService = animalSoundService; MeowModels = new ObservableCollection <MeowModel>(); _meowTimer = new Timer(1000); _randomNumber = new Random(); _meowTimer.Elapsed += new ElapsedEventHandler(_meowTimer_Elapsed); MeowCommand = new RelayCommand(Meow); RandomNumberCommand = new RelayCommand <object>(RandomNumberGenerate); }
public PageTwoViewModel(IAnimalSoundService animalSoundService) { _animalSoundService = animalSoundService; _animalSoundService.AnimalCalling += _animalSoundService_AnimalCalling; }