Esempio n. 1
0
        public PartyViewModel()
        {
            this.jsonService = GetService<Contracts.IJsonService>();
            this.Navigator = GetService<INavigationService>();
            this.NetworkMonitor = GetService<INetworkService>();

            this.showPartyDetailsCommand = new RelayCommand(ShowPartyDetailsAsync, null);
        }
Esempio n. 2
0
        public MainViewModel()
        {
            this.jsonService = GetService<Contracts.IJsonService>(); 
            this.Navigator = GetService<INavigationService>();
            this.NetworkMonitor = GetService<INetworkService>(); 

            this.showAboutInfoCommand = new RelayCommand(ShowAboutInfo, null);
            this.getFiltersCommand = new RelayCommand(GetFilters, null);
            this.getFollowingPeopleCommand = new RelayCommand(GetFollowingPeopleAsync, null);
            this.getRandomPersonCommand = new RelayCommand(GetRandomPeopleAsync, null);
            this.getPartiesCommand = new RelayCommand(GetPartiesAsync, null);
            this.getPeopleByPartyCommand = new RelayCommand(GetPeopleByPartyAsync, null);
        }