コード例 #1
0
ファイル: Bands.cs プロジェクト: mrskme/Nettbutikk
        public Bands()
        {
            Genres  = new Genres();
            Members = new Members();
            Albums  = new Albums();

            LedZeppelin = new Band("Led Zeppelin", Members.LedZeppelin, "England", Genres.Rock, Albums.LedZeppelin);
            DaftPunk    = new Band("Daft Punk", Members.Daftpunk, "France", Genres.Electric, Albums.DaftPunk);

            All = new List <Band>
            {
                LedZeppelin,
                DaftPunk,
            };
        }
コード例 #2
0
        public Albums()
        {
            Genres           = new Genres();
            _mothershipSongs = new List <string>
            {
                "Good Times Bad Times",
                "Communication Breakdown",
                "Dazed and Confused",
                "Babe I'm Gonna Leave You",
                "Whole Lotta Love",
                "Ramble On",
                "Heartbreaker",
                "Immigrant Song",
                "Since I've Been Loving You",
                "Rock and Roll",
                "Black Dog",
                "When the Levee Breaks",
                "Stairway to Heaven",
            };
            _ledZeppelinAlbumSongs = new List <string>
            {
                "Good Times Bad Times",
                "Babe I'm Gonna Leave You",
                "You Shook Me",
                "Dazed and Confused",
                "Your Time Is Gonna Come",
                "Black Mountain Side",
                "Communication Breakdown",
                "I Can't Quit You Baby",
                "How Many More Times",
            };
            _homeworkSongs = new List <string>
            {
                "Da Funk",
                "Daftendirekt",
                "WDPK 83.7 FM",
                "Revolution 909",
                "Phœnix",
                "Fresh",
                "Around the World",
                "RollinAndScratchin",
                "Teachers",
                "HighFidelity",
                "Rock'n Roll",
                "Oh Yeah",
                "Burning",
                "In do silver club",
                "Alive",
                "Funk ad",
            };

            _mothership       = new Album(_mothershipSongs, "Mothership", 2007, Genres.Rock);
            _ledZeppelinAlbum = new Album(_ledZeppelinAlbumSongs, "Led Zeppelin", 1969, Genres.Rock);
            _homework         = new Album(_homeworkSongs, "Home Work", 1997, Genres.Electric);

            LedZeppelin = new List <Album>
            {
                _mothership,
                _ledZeppelinAlbum,
            };
            DaftPunk = new List <Album>
            {
                _homework
            };
            All = new List <List <Album> >
            {
                LedZeppelin, DaftPunk,
            }.Select(A => A.OrderBy(a => a.ReleaseDate).ToList()).ToList();
        }