private void SearchButton_Click(object sender, EventArgs e) { string searchText = searchBar.Text; if (!String.IsNullOrWhiteSpace(searchText)) { clubs_Standings = clubStandingsRepository.Search(searchText); StandingsListview.Adapter = new StandingsAdapter(this, clubs_Standings); } else { clubs_Standings = clubStandingsRepository.GetClubs_Standings(); StandingsListview.Adapter = new StandingsAdapter(this, clubs_Standings); } }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.Uitslagen); StandingsListview = FindViewById <ListView>(Resource.Id.STANDINGSLIST); clubStandingsRepository = new ClubStandingsRepository(); clubs_Standings = clubStandingsRepository.GetClubs_Standings(); StandingsListview.Adapter = new StandingsAdapter(this, clubs_Standings); StandingsListview.ItemClick += StandingsListview_ItemClick; FindViews(); HandleEvents(); compareStandings = ""; }