/// <summary> /// cancel synchronisation /// </summary> public void CancelSync() { if (!IsRunning) return; SyncTask.Cancel(); SyncInfo.SyncCancelled(); SyncTask = null; }
/// <summary> /// pause synchronisation /// </summary> public void PauseSync() { if (!IsRunning) { return; } SyncTask.Pause(); SyncInfo.SyncPaused(); }
/// <summary> /// resume synchronisation /// </summary> public void ResumeSync() { if (!IsRunning) { return; } SyncTask.Resume(); SyncInfo.SyncContinued(); }
/// <summary> /// cancel synchronisation /// </summary> public void CancelSync() { if (!IsRunning) { return; } SyncTask.Cancel(); SyncInfo.SyncCancelled(); SyncTask = null; }
/// <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(); }