Program.cs 669 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Reactive.Linq;
  3. using System.Windows.Forms;
  4. using System.Reactive.Disposables;
  5. using Excercise7.DictionarySuggestService;
  6. namespace Excercise7
  7. {
  8. class Program
  9. {
  10. static void Main()
  11. {
  12. var svc = new DictServiceSoapClient("DictServiceSoap");
  13. svc.BeginMatchInDict("wn", "react", "prefix",
  14. iar =>
  15. {
  16. var words = svc.EndMatchInDict(iar);
  17. foreach (var word in words)
  18. Console.WriteLine(word.Word);
  19. },
  20. null
  21. );
  22. Console.ReadLine();
  23. }
  24. }
  25. }