protected override void SearchText_TextChanged(object sender, TextChangedEventArgs e) { IEnumerable <Team> teams = ViewModel.Teams.Where(t => t.Name.ToLower().Contains(SearchEditText.Text.ToLower())); TeamAdapter.Refresh(teams); TeamsRecyclerView.SetAdapter(TeamAdapter); }
private void OnItemDeleteClick(object sender, string userteamId) { ViewModel.DeleteTeam(userteamId); TeamAdapter.Refresh(ViewModel.Teams); TeamsRecyclerView.SetAdapter(TeamAdapter); }
private void OnItemDeleteClick(object sender, string userteamId) { ViewModel.Tournament.Teams.Remove(ViewModel.Tournament.Teams.FirstOrDefault(ut => ut.Id == userteamId)); TeamAdapter.Refresh(ViewModel.Tournament.Teams); TeamRecyclerView.SetAdapter(TeamAdapter); }