public void ApplySettings(ISettings settings) { if (settings != null) { SaveAfterDone = settings.SaveAfterDone; if (HistoryDataProvider != null) { HistoryDataProvider.ApplySettings(settings); } TimeManager.MaxDuration = settings.ReminderTime; TimeManager.SplitByComma = settings.SplitByComma; TimeManager.SwitchAtMidnight = settings.SwitchTimeLogAtMidnight; ApplyTweetingActivity(settings); ExternalPoster.AccessTokens = new TokensPair(settings.TwitterAccessToken, settings.TwitterAccessTokenSecret); } }