상속: INotifyPropertyChanged
예제 #1
0
 public async Task<Settings> LoadSettings()
 {
     if (this.settings == null) {
         this.settings = await Settings.LoadAsync();
     }
     return this.settings;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public Settings()
 {
     _instance = this;
 }