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; } }
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(); } }
public static IsolatedStorageManager GetManager() { lock (c_lock) { if (c_ismInstance == null) { c_ismInstance = new IsolatedStorageManager(); } return(c_ismInstance); } }