Exemplo n.º 1
0
        /// <summary>
        /// cancel synchronisation
        /// </summary>
        public void CancelSync()
        {
            if (!IsRunning) return;

            SyncTask.Cancel();
            SyncInfo.SyncCancelled();
            SyncTask = null;
        }
Exemplo n.º 2
0
        /// <summary>
        /// pause synchronisation
        /// </summary>
        public void PauseSync()
        {
            if (!IsRunning)
            {
                return;
            }

            SyncTask.Pause();
            SyncInfo.SyncPaused();
        }
Exemplo n.º 3
0
        /// <summary>
        /// resume synchronisation
        /// </summary>
        public void ResumeSync()
        {
            if (!IsRunning)
            {
                return;
            }

            SyncTask.Resume();
            SyncInfo.SyncContinued();
        }
Exemplo n.º 4
0
        /// <summary>
        /// cancel synchronisation
        /// </summary>
        public void CancelSync()
        {
            if (!IsRunning)
            {
                return;
            }

            SyncTask.Cancel();
            SyncInfo.SyncCancelled();
            SyncTask = null;
        }
Exemplo n.º 5
0
        /// <summary>
        /// execute synchronisation, set listener before
        /// </summary>
        /// <param name="syncListener">listener or null if no listener should be set</param>
        public void Sync(ISyncListener syncListener)
        {
            SyncInfo = new SyncInfo(this);
            if(syncListener != null)
                SyncInfo.SetListener(syncListener);

            SyncTask = new SyncTask2(SyncInfo);
            SyncTask.Execute();
        }