示例#1
0
 void client_FindTheWordCompleted(object sender, SAPDictionaryService.FindTheWordCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         string[] arrword = e.Result.ToArray();
         if (arrword.Length == 3)
             _theword = new Word(arrword[0], arrword[1], arrword[2]);
         else
             _theword = null;
         if (TheWordFound != null)
             TheWordFound(_theword);
     }
 }
示例#2
0
 void client_FindWordsByAlphabetCompleted(object sender, SAPDictionaryService.FindWordsByAlphabetCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (WordsByAlphabetFound != null)
         {
             string[] arrword = e.Result.ToArray();
             ObservableCollection<Word> words = new ObservableCollection<Word>();
             for (int ix = 0; ix < arrword.Length; ix++)
             {
                 words.Add(new Word(arrword[ix]));
             }
             WordsByAlphabetFound(words);
         }
     }
 }