예제 #1
0
 /// <summary>
 /// Initialize asynchronously an instance of the Language class
 /// </summary>
 /// <returns>Instance of Language</returns>
 public static Task<Language> CreateAsync()
 {
     var ret = new Language();
     return ret.InitializeAsync();
 }
예제 #2
0
 /// <summary>
 /// Load asynchronously the languages of the application for the current instance
 /// </summary>
 /// <returns>Instance of SettingsViewModel</returns>
 private async Task InitializeAsync()
 {
     Language = new Language(_languageService);
     await Language.LoadLanguages();
 }