Пример #1
0
 public void UpdateList()
 {
     var infos = _appDbOperator.GetMapsFromCollection(ViewModel.CollectionInfo);
     _entries = _beatmapDbOperator.GetBeatmapsByMapInfo(infos, TimeSortMode.AddTime);
     ViewModel.Beatmaps = new NumberableObservableCollection<BeatmapDataModel>(_entries.ToDataModelList(false));
     ViewModel.DisplayedBeatmaps = ViewModel.Beatmaps;
     ListCount.Content = ViewModel.Beatmaps.Count;
 }
Пример #2
0
        public CollectionPage NavigateNewCollection(Collection collectionInfo)
        {
            ViewModel.CollectionInfo = collectionInfo;
            var infos = _appDbOperator.GetMapsFromCollection(collectionInfo);

            _entries           = _beatmapDbOperator.GetBeatmapsByMapInfo(infos, TimeSortMode.AddTime);
            ViewModel.Beatmaps = new NumberableObservableCollection <BeatmapDataModel>(_entries.ToDataModelList(false));
            return(this);
        }
Пример #3
0
 public List <BeatmapSettings> GetMapsFromCollection(Collection collection)
 {
     try
     {
         return(_dbOperator.GetMapsFromCollection(collection));
     }
     catch (Exception ex)
     {
         Notification.Push($"Error while getting maps from collection: {ex.Message}");
         return(new List <BeatmapSettings>());
     }
 }