Ejemplo n.º 1
0
        private async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("matches");

            EventList   = _realm.All <EventModel>().Where(data => data.MatchId == Match.Id);
            CommentList = _realm.All <CommentModel>().Where(data => data.MatchId == Match.Id);
            CollectionList.Add(new ObservableCollectionsVM {
                CollectionList = EventList, ListSwitch = true
            });
            CollectionList.Add(new ObservableCollectionsVM {
                CollectionList = CommentList, ListSwitch = false
            });
        }
Ejemplo n.º 2
0
        async void Player_OnTapped()
        {
            Realm _realm = await NoInternetVM.IsConnectedOnMainPage("formerPlayers");

            PlayerModel player = _realm.Find <PlayerModel>(SelectedItem.PlayerId);
            var         temp   = _realm.All <PlayerModel>();

            if (player != null)
            {
                await CustomStack.Instance.HistoryContent.Navigation.PushAsync(new PlayerDescription(player));

                ViewModelLocator.HeaderVM.UpdateContent();
            }
        }
Ejemplo n.º 3
0
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("POTY");

            QueryList = _realm.All <POTYModel>().OrderByDescending(x => x.Year);
        }
Ejemplo n.º 4
0
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("players");

            PlayerListSource = _realm.All <PlayerModel>().OrderBy(x => x.Number);
        }
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("overfiftygoals");

            QueryList = _realm.All <OverFiftyGoalsModel>().OrderByDescending(x => x.Goals);
        }
        private async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("futureMatches");

            FutureMatchList = _realm.All <HeaderMatchModel>();
        }
Ejemplo n.º 7
0
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("news");

            NewsList = _realm.All <NewsModel>();
        }
Ejemplo n.º 8
0
        //loads previous matches
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("matches");

            MatchList = _realm.All <MatchModel>();
        }
Ejemplo n.º 9
0
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("overhundredgames");

            QueryList = _realm.All <OverHundredGamesModel>().OrderByDescending(x => x.Games);
        }
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("historicalStandings");

            QueryList = _realm.All <HistoricalStandingModel>().OrderBy(x => x.TournamentName);
        }
        public async void SetupRealm()
        {
            _realm = await NoInternetVM.IsConnectedOnMainPage("formerPlayers");

            QueryList = _realm.All <PlayerModel>().OrderBy(x => x.Name);
        }