コード例 #1
0
        public void callToSearch(object sender, RoutedEventArgs e)
        {
            string tempSearch = sender.ToString();

            tempSearch = tempSearch.Substring(31);
            Console.WriteLine("searching image" + sender.ToString());

            service = new GoogleImageSearchService();
            service.GetImagesAsync(tempSearch, ServiceCallback);
        }
コード例 #2
0
 private void buttonSearch_Click(object sender, RoutedEventArgs e)
 {
     MessageBox.Show("the recognised word is " + recogniseCharacters);
     service = new GoogleImageSearchService();
     service.GetImagesAsync(recogniseCharacters, ServiceCallback);
 }