Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            //musicCollection = new MusicCollection();
            playlistCollection = new PlaylistCollection();

            //XmlLoader<Song> readSongs = new XmlLoader<Song>(fileSongs);
            //musicCollection.songs = readSongs.GetItems();

            XmlLoader <Playlist> readPl = new XmlLoader <Playlist>(filePlaylists);

            playlistCollection.playlists = readPl.GetItems();

            PlaylistsPanelRefresh(playlistCollection.playlists);
            selectedPlaylist = playlistCollection.playlists[0];
            PlaylistInfoShow(selectedPlaylist);

            if (playlistCollection.playlists.Count > 0)
            {
                MusicListViewRefresh(playlistCollection.playlists[0].Songs);
            }

            myPlayer = new MyPlayer();
        }