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