Пример #1
0
        public async Task <int> LoadLkus()
        {
            Bpr.Beep1of2();
            var sw          = Stopwatch.StartNew();
            int genresCount = await Task.Run(() => { _db.LkuGenres.Load(); return(_db.LkuGenres.Local.Count()); });

            Genres.ClearAddRange(_db.LkuGenres.Local);
            if (Genres.Count() > 0)
            {
                CurGenre = _db.LkuGenres.First(r => r.Name == "All");
            }

            TopLefttInfo = $"{Genres.Count()} genres loaded in {.001 * sw.ElapsedMilliseconds:N1} sec. ";

            var ttlMU = await LoadList();

            Bpr.Beep2of2();
            return(genresCount);
        }