示例#1
0
        protected override void SearchText_TextChanged(object sender, TextChangedEventArgs e)
        {
            IEnumerable <Tournament> tournaments = ViewModel.Tournaments.Where(t => t.Name.ToLower().Contains(SearchEditText.Text.ToLower()));

            TournamentsAdapter.RefreshTournaments(tournaments);
            TournamentsRecyclerView.SetAdapter(TournamentsAdapter);
        }
        private void ImportTournament()
        {
            var importtournament = ViewModel.ImportedTournaments();

            TournamentsAdapter.RefreshTournaments(ViewModel.Tournaments);
            TournamentsRecyclerView.SetAdapter(TournamentsAdapter);
        }
 private void OnItemDeleteClick(object sender, string usertournamentId)
 {
     ViewModel.DeleteTournament(usertournamentId);
     TournamentsAdapter.RefreshTournaments(ViewModel.Tournaments);
     TournamentsRecyclerView.SetAdapter(TournamentsAdapter);
 }