Пример #1
0
 public void UpdateList()
 {
     _recentBeatmaps = new ObservableCollection <Beatmap>(
         _beatmapOperator.GetBeatmapsByMapInfo(_appDbOperator.GetRecentList(), TimeSortMode.PlayTime));
     DataModels             = new NumberableObservableCollection <BeatmapDataModel>(_recentBeatmaps.ToDataModelList(false));
     RecentList.DataContext = DataModels.ToList();
 }
Пример #2
0
 public List <BeatmapSettings> GetRecentList()
 {
     try
     {
         return(_dbOperator.GetRecentList());
     }
     catch (Exception ex)
     {
         Notification.Push($"Error while getting recent list: {ex.Message}");
         return(new List <BeatmapSettings>());
     }
 }