예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 //Search using jisho.org & flickr apis
 public void Search(string searchText)
 {
     jsonObject = jsonController.setJson(searchText);
     FlickrImage.SearchImage(searchText);
 }
예제 #3
0
 private void OnFlickrImageSearchButton_Click(object sender, EventArgs e)
 {
     FlickrImage.SearchImage(flickrImageSearch.GetImageSearchText());
 }