Exemplo n.º 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;
 }
Exemplo n.º 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;
        }