Exemple #1
0
        public void Save()
        {
            IsolatedStorageFileStream isfStream = IsolatedStorageManager.GetManager().Store.OpenFile(Literals.C_ACCOUNT_FILE, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write);

            WriteToStream(isfStream);
            isfStream.Close();
        }
        public static IsolatedStorageManager GetManager()
        {
            lock (c_lock)
            {
                if (c_ismInstance == null)
                    c_ismInstance = new IsolatedStorageManager();

                return c_ismInstance;
            }
        }
Exemple #3
0
        public void Load()
        {
            IsolatedStorageManager isManager = IsolatedStorageManager.GetManager();

            if (isManager.Store.FileExists(Literals.C_ACCOUNT_FILE))
            {
                IsolatedStorageFileStream isfStream = IsolatedStorageManager.GetManager().Store.OpenFile(Literals.C_ACCOUNT_FILE, FileMode.OpenOrCreate, FileAccess.Read);
                LoadFromStream(isfStream);
                isfStream.Close();
            }
        }
Exemple #4
0
        public static IsolatedStorageManager GetManager()
        {
            lock (c_lock)
            {
                if (c_ismInstance == null)
                {
                    c_ismInstance = new IsolatedStorageManager();
                }

                return(c_ismInstance);
            }
        }