Ejemplo n.º 1
0
 private void SearchView_OnTextChange(object sender, SearchView.QueryTextChangeEventArgs e)
 {
     try
     {
         SearchText = e.NewText;
     }
     catch (Exception exception)
     {
         Methods.DisplayReportResultTrack(exception);
     }
 }
Ejemplo n.º 2
0
        private void SearchView_QueryTextChange(object sender, SearchView.QueryTextChangeEventArgs e)
        {
            //try
            //{
            //    List<Post> searchResult =
            //            (from post in posts
            //             where post.PostBody.ToLower().Contains(e.NewText.ToLower())
            //             select post).ToList();

            //    postAdapter = new PostAdapter(this, searchResult);
            //    postAdapter.RegisterAdapterDataObserver(emptyObserver);
            //    mainRecycler.SetAdapter(postAdapter);
            //}
            //catch (Exception)
            //{
            //    Toast.MakeText(this, "No data yet", ToastLength.Short).Show();
            //}
        }