Exemple #1
0
        /// <summary>
        /// On return of search result
        /// </summary>
        /// <param name="result"></param>
        void searchHttpRequest_OnResult(Result result)
        {
            //Dismiss progress bar
            if (progressDialog != null)
            {
                progressDialog.Dismiss();
            }

            //if result has item then add to adpter or show error.
            if (result.items != null && result.items.Count > 0)
            {
                searchItemAdapter.Add(result);
            }
            else
            {
                RunOnUiThread(() => Toast.MakeText(this, GetString(Resource.String.CannotFetch), ToastLength.Short).Show());
            }
        }
        /// <summary>
        /// On return of search result
        /// </summary>
        /// <param name="result"></param>
        void searchHttpRequest_OnResult(Result result)
        {
            //Dismiss progress bar
            if (progressDialog != null)
            {
                progressDialog.Dismiss();
            }

            //if result has item then add to adpter or show error.
            if (result.items != null && result.items.Count > 0)
            {
                searchItemAdapter.Add(result);
            }
            else
            {
                RunOnUiThread(() => Toast.MakeText(this, GetString(Resource.String.CannotFetch), ToastLength.Short).Show());
            }
        }