Ejemplo n.º 1
0
        static SettingsService()
        {
            var applicationData = ApplicationData.Current;

            LocalSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.LocalSettings);

#if WINDOWS_PHONE
            if (Version.Parse(Deployment.Current.RuntimeVersion).Major >= 6)
            {
                RoamingSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.RoamingSettings);
            }
#else
            RoamingSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.RoamingSettings);
#endif

#if WINDOWS_PHONE || WINDOWS_PHONE_APP
            LegacySettingsServiceHandlerStatic = new LegacySettingsServiceHandler();
#endif
        }
        static SettingsService()
        {
            var applicationData = ApplicationData.Current;

            LocalSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.LocalSettings);

#if WINDOWS_PHONE
            if (Version.Parse(Deployment.Current.RuntimeVersion).Major >= 6)
            {
                RoamingSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.RoamingSettings);
            }
#else
            RoamingSettingsServiceHandlerStatic = new SettingsServiceHandler(applicationData.RoamingSettings);
#endif

#if WINDOWS_PHONE || WINDOWS_PHONE_APP
            LegacySettingsServiceHandlerStatic = new LegacySettingsServiceHandler();
#endif
        }