Пример #1
0
        private void SearchButton_Click(object sender, EventArgs e)
        {
            //getSubReddit();
            string keyword = mTextInputEditTextSearch.Text;

            if (String.IsNullOrEmpty(keyword))
            {
                Toast.MakeText(this, GetString(Resource.String.warning_input_value), ToastLength.Long).Show();
            }
            else
            {
                //mProgressDialog.Show();
                mProgressBarSearch.Visibility = ViewStates.Visible;
                HideKeyBoard(mTextInputEditTextSearch.WindowToken);
                mSearchButton.Enabled = false;
                //mSubRedditItemsViewPresenter.LoadSubRedditItem(keyword);
                mSubRedditItemsViewPresenter.LoadSubRedditItem2Async(keyword);
            }
        }
Пример #2
0
 public void Constructor_NotNullElements_Success()
 {
     presenter.LoadSubRedditItem2Async("sample");
 }