コード例 #1
0
        async partial void FetchMatchesButton_TouchUpInside(UIButton sender)
        {
            //Get current selected meme from the ViewPicker
            var rowSel = CompetitionPicker.SelectedRowInComponent(new nint(0));
            var competitionIdString = (CompetitionPicker.Model as CompetitionsPickerViewModel).GetId(rowSel);

            //Calls the PCL with the chosen competition Id to get the matches List
            var matchesCollection = await ScoresSource.GetLastCompetitionMatches(competitionIdString);

            //Order the matches by date
            matchesArray = matchesCollection.OrderByDescending(m => m.StartTime).ToArray();

            //Reload the tableview
            MatchesTable.ReloadData();
        }
コード例 #2
0
 public MatchService()
 {
     Access       = new Access();
     MatchesTable = new MatchesTable(Helper.DbPath);
 }