public Settings GetDefaultSettings() { Settings settings = new Settings() { CheckForNewAdsMaxAdsCount = 5000, CheckForNewAdsIntervalMinutes = 300 }; return settings; }
public SettingsViewModel() { _model = Managers.SettingsManager.GetSettings(); }
public void SaveSettings(Settings settings) { SaveSetting("CheckForNewAdsMaxAdsCount", settings.CheckForNewAdsMaxAdsCount.ToString()); SaveSetting("CheckForNewAdsIntervalMinutes", settings.CheckForNewAdsIntervalMinutes.ToString()); _settings = null; }