Ejemplo n.º 1
0
 private Beatmap GetSelected()
 {
     if (MapList.SelectedItem == null)
         return null;
     var selectedItem = (BeatmapDataModel)MapList.SelectedItem;
     return _beatmapDbOperator.GetBeatmapsFromFolder(selectedItem.FolderName)
         .FirstOrDefault(k => k.Version == selectedItem.Version);
 }
Ejemplo n.º 2
0
 private Beatmap GetSelectedDefault()
 {
     if (ResultList.SelectedItem == null)
         return null;
     var map = _beatmapDbOperator
         .GetBeatmapsFromFolder(((BeatmapDataModel)ResultList.SelectedItem).FolderName)
         .GetHighestDiff();
     return map;
 }