コード例 #1
0
 //HADLE DEL DATASTORE
 void HandleStoreChange(object sender, DBDatastore.SyncStatusEventArgs e)
 {
     if (e.P0.SyncStatus.HasIncoming)
     {
         if (!Account.HasLinkedAccount)
         {
             LogInfo("La conexion ha sido abandonada");
             DropboxDatastore.DatastoreChanged -= HandleStoreChange;
         }
         Console.WriteLine("Datastore necesita sincronizarse.");
         DropboxDatastore.Sync();
     }
 }
コード例 #2
0
 void HandleStoreChange(object sender, DBDatastore.SyncStatusEventArgs e)
 {
     if (e.P0.SyncStatus.HasIncoming)
     {
         if (!Account.HasLinkedAccount)
         {
             //Log("InitializeDropbox", "Account no longer linked, so abandoning.");
             DropboxDatastore.DatastoreChanged -= HandleStoreChange;
         }
         Console.WriteLine("Datastore needs to be re-synced.");
         Sync();
     }
 }