コード例 #1
0
        public Settings GetDefaultSettings()
        {
            Settings settings = new Settings()
            {
                CheckForNewAdsMaxAdsCount = 5000,
                CheckForNewAdsIntervalMinutes = 300
            };

            return settings;
        }
コード例 #2
0
 public SettingsViewModel()
 {
     _model = Managers.SettingsManager.GetSettings();
 }
コード例 #3
0
 public void SaveSettings(Settings settings)
 {
     SaveSetting("CheckForNewAdsMaxAdsCount", settings.CheckForNewAdsMaxAdsCount.ToString());
     SaveSetting("CheckForNewAdsIntervalMinutes", settings.CheckForNewAdsIntervalMinutes.ToString());
     _settings = null;
 }