public static bool PageOpened(ExamplePage page)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
            if(settings.Contains(page.ToString()))
            {
                return (bool)settings[page.ToString()];
            }

            return false;
        }
Beispiel #2
0
        public static bool PageOpened(ExamplePage page)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

            if (settings.Contains(page.ToString()))
            {
                return((bool)settings[page.ToString()]);
            }

            return(false);
        }
 public static void SetPageOpened(ExamplePage page, bool isOpened = true)
 {
     IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
     if (settings.Contains(page.ToString()))
     {
         settings[page.ToString()] = isOpened;
     }
     else
     {
         settings.Add(page.ToString(), isOpened);
     }
 }
Beispiel #4
0
        public static void SetPageOpened(ExamplePage page, bool isOpened = true)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

            if (settings.Contains(page.ToString()))
            {
                settings[page.ToString()] = isOpened;
            }
            else
            {
                settings.Add(page.ToString(), isOpened);
            }
        }