Exemplo n.º 1
0
        private void ReadId3()
        {
            ID3Tagger.NotifierDelegate handler = SetStatus;

            ID3Tagger id3Tagger = new ID3Tagger();

            id3Tagger.Read(handler);

            this.tbAlbum.Text   = id3Tagger.Tag.Album;
            this.tbArtist.Text  = id3Tagger.Tag.Artist;
            this.tbTitle.Text   = id3Tagger.Tag.Title;
            this.tbComment.Text = id3Tagger.Tag.Comment;
            this.tbYear.Text    = id3Tagger.Tag.Year;
        }
Exemplo n.º 2
0
        internal void Read()
        {
            ID3Tagger.NotifierDelegate handler = SendOut;

            ID3Tagger id3Tagger = new ID3Tagger();

            id3Tagger.Read(handler);

            #region hide
            //List<ID3Tag> tags = new List<ID3Tag>();
            //tags.Add(id3Tagger.Tag);
            //tags.Add(id3Tagger.Tag);

            //Func<ID3Tag, string> titleProjection = delegate (ID3Tag p) { return p.Title; };
            //Console.WriteLine("titleProjection: " + tags.Select(titleProjection).ToArray()[1]);


            //Func<ID3Tag, string> artistProjection = p => p.Artist;
            //Console.WriteLine("artistProjection: " + tags.Select(artistProjection).ToArray()[0]);
            #endregion

            Console.ReadLine();
        }