Baka_MPlayer.Forms.InfoForm.SetId3Tags C# (CSharp) Method

SetId3Tags() private method

private SetId3Tags ( ) : void
return void
        private void SetId3Tags()
        {
            tagList.Items.Clear();
            tagList.BeginUpdate();

            AddTagItem("Title", fileInfo.Id3Tags.Title);
            AddTagItem("Artist", fileInfo.Id3Tags.Artist);
            AddTagItem("Album", fileInfo.Id3Tags.Album);
            AddTagItem("Year", fileInfo.Id3Tags.Date);
            AddTagItem("Track", fileInfo.Id3Tags.Track);
            AddTagItem("Genre", fileInfo.Id3Tags.Genre);
            AddTagItem("Description", fileInfo.Id3Tags.Description);
            AddTagItem("Comment", fileInfo.Id3Tags.Comment);
            tagList.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

            // album art
            if (fileInfo.Id3Tags.AlbumArtTag != null)
            {
                saveImgLabel.Enabled = true;
                AlbumArt = fileInfo.Id3Tags.AlbumArtTag.AlbumArt;

                imgTypeTextBox.Text = fileInfo.Id3Tags.AlbumArtTag.Type;
                demTextBox.Text = string.Format("{0} x {1}", AlbumArt.Width, AlbumArt.Height);
            }
            else
            {
                saveImgLabel.Enabled = false;
                AlbumArt = null;
            }
            tagList.EndUpdate();
        }