예제 #1
0
 private static async Task LoadRoamingAsync()
 {
     var fav = await Singleton<RoamingService>.Instance.GetAsync<FavoritesTable>(FavFileName);
     if (fav == null)
     {
         fav = new FavoritesTable
         {
             Sections = new List<FavoritesSection>()
         };
     }
     _userFavorites = fav;
 }
예제 #2
0
        private static async Task LoadRoamingAsync()
        {
            var fav = await Singleton <RoamingService> .Instance.GetAsync <FavoritesTable>(FavFileName);

            if (fav == null)
            {
                fav = new FavoritesTable
                {
                    Sections = new List <FavoritesSection>()
                };
            }
            _userFavorites = fav;
        }