private void CreateThreadForCancelJob(object jobId)
 {
     try
     {
         TranslationJob.CancelJob(cc, new Guid((string)jobId));
         cc.ExecuteQuery();
         DispatcherOperation dop = Dispatcher.BeginInvoke(new Action <string>(PrintResult), "Done");
     }
     catch (Exception e)
     {
         DispatcherOperation dop = Dispatcher.BeginInvoke(new Action <string>(PrintResult), e.ToString());
     }
 }
 /// <summary>
 /// cancel submitted job
 /// call GetJobStatus() to get job ids
 /// </summary>
 /// <param name="jobid">job guid</param>
 static void CancelJob(string jobid)
 {
     TranslationJob.CancelJob(sc, new Guid(jobid));
 }
 static void TestCancelJob(string jobid)
 {
     TranslationJob.CancelJob(cc, new Guid(jobid));
     cc.ExecuteQuery();
 }