Ejemplo n.º 1
0
        public static void Initialise()
        {
            var s = Settings;

            ShowSettings = false;

            bool   bDelete = false;
            string version = String.Empty;

            if (!Settings.TryGetValue(VersionTag, out version))
            {
                bDelete = ShowSettings = true;
            }
            else
            {
                Version vPrevious = Version.Parse(version);
                Version vApp      = Version.Parse(NewAppVersion);

                if (vApp > vPrevious)
                {
                    bDelete = true;
                }
                else
                {
                    bDelete = false;
                }

                if (vApp > vPrevious)
                {
                    ShowSettings = true;
                }
            }

            if (bDelete && !Config.AnimateLockscreen)
            {
                BaseStorageHelper helper = new BaseStorageHelper();
                helper.CleanSharedContent();
            }

            if (ShowSettings)
            {
                Settings[VersionTag] = NewAppVersion;
                Settings.Save();
            }

            var r = Region;
        }
Ejemplo n.º 2
0
        public static void Initialise()
        {
            settings = ApplicationData.Current.LocalSettings;

            ShowSettings = false;

            bool   bDelete = false;
            string version = String.Empty;

            if (!settings.Values.ContainsKey(VersionTag))
            {
                bDelete = ShowSettings = true;
            }
            else
            {
                version = (string)settings.Values[VersionTag];
                Version vPrevious = Version.Parse(version);
                Version vApp      = Version.Parse(NewAppVersion);

                if (vApp > vPrevious)
                {
                    ShowSettings = true;
                }
            }

            if (bDelete)
            {
                BaseStorageHelper helper = new BaseStorageHelper();
                helper.CleanSharedContent();
            }

            if (ShowSettings)
            {
                settings.Values[VersionTag] = NewAppVersion;
            }

            var r = Region;
            var q = TrailerQuality;
            var w = UseMobileWeb;
        }