public SaveAsync ( ) : System.Threading.Tasks.Task | ||
Résultat | System.Threading.Tasks.Task |
public static async Task <Settings> LoadAsync() { var store = new IsolatedStorage <Settings>(); Settings result = null; try { Debug.WriteLine("Loading settings from : " + SettingsFolder); result = await store.LoadFromFileAsync(SettingsFolder, SettingsFileName); } catch { } if (result == null) { result = new Settings(); await result.SaveAsync(); } return(result); }
public static async Task<Settings> LoadAsync() { var store = new IsolatedStorage<Settings>(); Settings result = null; try { Debug.WriteLine("Loading settings from : " + SettingsFolder); result = await store.LoadFromFileAsync(SettingsFolder, SettingsFileName); } catch { } if (result == null) { result = new Settings(); await result.SaveAsync(); } return result; }