Beispiel #1
0
 private void RefreshFromServer()
 {
     facade = CreateFacadeForSyncSession();
     if (facade != null)
     {
         facade.SyncType = SyncType.RefreshFromServer;
         facade.LogOnAndSyncAsync();
     }
 }
Beispiel #2
0
 private void SlowSync()
 {
     facade = CreateFacadeForSyncSession();
     if (facade != null)
     {
         facade.SyncType = SyncType.Slow;
         facade.LogOnAndSyncAsync();
     }
 }
Beispiel #3
0
 private void SyncFromClient()
 {
     facade = CreateFacadeForSyncSession();
     if (facade != null)
     {
         facade.SyncType = SyncType.OneWayFromClient;
         facade.LogOnAndSyncAsync();
     }
 }
Beispiel #4
0
        private IAsyncResult Sync(SyncType syncType)
        {
            SetControlEnabled(btnSync, false);//will be enabled when sync is finished.
            SetControlVisible(btnStop, true);

            facade = CreateFacadeForSyncSession();
            if (facade != null)
            {
                return(facade.LogOnAndSyncAsync(syncType));
            }
            else
            {
                SetControlEnabled(btnSync, true);
                SetControlVisible(btnStop, false);
            }
            return(null);
        }