private void nextButton_Click(object sender, EventArgs e) { if (jsonObject == null)//the search yeilded 0 results -> can't call Next(); { EnglishDefinitionTextBox.Text = "No results for search"; return; } else { jsonController.nextResult(); UpdateText(); if (flickrImageSearch.onButtonChecked()) { flickrImageSearch.SetImageSearchText(suggestedSearch); FlickrImage.SearchImage(suggestedSearch); } } }
//Search using jisho.org & flickr apis public void Search(string searchText) { jsonObject = jsonController.setJson(searchText); FlickrImage.SearchImage(searchText); }
private void OnFlickrImageSearchButton_Click(object sender, EventArgs e) { FlickrImage.SearchImage(flickrImageSearch.GetImageSearchText()); }