Esempio n. 1
0
 public async void GetRevisions()
 {
     await Task.Run(() =>
     {
         List <Revision> Rs = g.GetRevisions(fileID);
         foreach (Revision item in Rs)
         {
             this.lstRevisions.Dispatcher.Invoke(new UpdateRevisionListCallback(this.UpdateRevisionList), item);
         }
     });
 }
 public static async void GetRevisions()
 {
     await Task.Run(() =>
     {
         List <Revision> Revisions = g.GetRevisions(fileID);
         foreach (Revision item in Revisions)
         {
             LatestRevID = LatestRevID == 0 ? int.Parse(item.Id) : LatestRevID;
             Console.WriteLine(item.ModifiedTime + " - " + item.LastModifyingUser.DisplayName);
         }
         System.Threading.Thread.Sleep(2000);
     });
 }