コード例 #1
0
    protected override void Prepare()
    {
      base.Prepare();

      _defaultScreen = new AudioFilterByArtistScreenData();
      _availableScreens = new List<AbstractScreenData>
        {
          new AudioShowItemsScreenData(_genericPlayableItemCreatorDelegate),
          // C# doesn't like it to have an assignment inside a collection initializer
          _defaultScreen,
          new AudioFilterByAlbumScreenData(),
          new AudioFilterByGenreScreenData(),
          new AudioFilterByDecadeScreenData(),
          new AudioFilterBySystemScreenData(),
          new AudioSimpleSearchScreenData(_genericPlayableItemCreatorDelegate),
        };

      _defaultSorting = new AudioSortByAlbumTrack();
      _availableSortings = new List<Sorting.Sorting>
        {
          _defaultSorting,
          new SortByTitle(),
          new AudioSortByFirstGenre(),
          new AudioSortByFirstArtist(),
          new AudioSortByAlbum(),
          new AudioSortByTrack(),
          new SortByYear(),
          new SortBySystem(),
        };
    }