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(); }
void ReleaseDesignerOutlets() { if (CompetitionPicker != null) { CompetitionPicker.Dispose(); CompetitionPicker = null; } if (FetchMatchesButton != null) { FetchMatchesButton.Dispose(); FetchMatchesButton = null; } if (MatchesTable != null) { MatchesTable.Dispose(); MatchesTable = null; } }