static void TestIsLanguageSupported(string lang)
        {
            ClientResult <bool> bTemp;

            bTemp = TranslationJob.IsLanguageSupported(cc, lang);
            cc.ExecuteQuery();
            Console.WriteLine("IsLanguageSupported for " + lang + " " + bTemp.Value);
        }
 private void CreateThreadForTestLang(object lang)
 {
     try
     {
         ClientResult <bool> bTemp;
         bTemp = TranslationJob.IsLanguageSupported(cc, (string)lang);
         cc.ExecuteQuery();
         string result           = bTemp.Value.ToString();
         DispatcherOperation dop = Dispatcher.BeginInvoke(new Action <string>(PrintResult), result);
     }
     catch (Exception e)
     {
         DispatcherOperation dop = Dispatcher.BeginInvoke(new Action <string>(PrintResult), e.ToString());
     }
 }