/// <summary> /// Reset the current Sync. If there is already a Calender it will be deleted an the Sync will be Instantiated with the new settings /// </summary> /// <param name="newSettings">true if there is no config file, false if there is already one</param> public void ResetSync(bool newSettings) { if (newSettings == false) { _calHandler.DeleteCustomCalendar(); } InitializeSync(); _synService.Reset(); _confManager.SetSynced(1); }
/// <summary> /// Resets the Outlook calendar, pulls a new copy from the external calendar and adds it to the Outlook calendar. /// </summary> public bool Reset() { Debug.WriteLine("SyncService: Executed Reset()"); if (!_isRunning) { _isRunning = true; _syncOutlook.DeleteCustomCalendar(); _syncOutlook.CreateCustomCalendar(); _syncOutlook.DoUpdates(_syncExternal.GetInitialSync()); _syncOutlook.SetSyncTime(DateTime.Now); _isRunning = false; } return(true); }