Пример #1
0
        void SaveSettings()
        {
            //IsolatedStorageSettings.ApplicationSettings.Set(UIConstants.UseBackgroundLocation, this.UseBackgroundLocation);
            //IsolatedStorageSettings.ApplicationSettings.Set(UIConstants.UseBackgroundTaskUpdater, this.useBackgroundTaskUpdates);
            //IsolatedStorageSettings.ApplicationSettings.Set(UIConstants.HideCompletedOnRefresh, this.HideCompletedOnRefresh);
            //IsolatedStorageSettings.ApplicationSettings.Set(UIConstants.HideCompletedOnStartup, this.hideCompletedOnStartup);
            //IsolatedStorageSettings.ApplicationSettings.Save(); 

            SettingsWorkaround wa = new SettingsWorkaround
            {
                UseLocation = this.UseBackgroundLocation,
                UseTileUpdater = this.UseBackgroundTaskUpdates,
                HideOnRefresh = this.HideCompletedOnRefresh,
                HideOnStartup = this.HideCompletedOnStartup,
                BackupNightly = this.BackupDatabaseNightly
            };
            wa.Save();

        }
 void SaveSettings()
 {
     SettingsWorkaround wa = new SettingsWorkaround
     {
         UseLocation = this.UseBackgroundLocation,
         UseTileUpdater = this.UseBackgroundTaskUpdates,
         HideOnRefresh = this.HideCompletedOnRefresh,
         HideOnStartup = this.HideCompletedOnStartup,
         BackupNightly = this.BackupDatabaseNightly
     };
     wa.Save();
 }