Example #1
0
        public void EditExtendedTag(string filename)
        {
            Mp3File mp3File = null;

            try
            {
                // create mp3 file wrapper; open it and read the tags
                mp3File = new Mp3File(filename);
            }
            catch (Exception ex)
            {
                ExceptionMessageBox.Show(_form, ex, "Error Reading Tag");
                return;
            }

            if (mp3File.TagModel != null)
            {
                // create dialog and give it the ID3v2 block for editing
                // this is a bit sneaky; it uses the edit dialog straight out of TagScanner.exe as if it was a dll.
                TagEditor.ID3PowerEdit id3PowerEdit = new TagEditor.ID3PowerEdit();
                id3PowerEdit.TagModel = mp3File.TagModel;
                id3PowerEdit.ShowDialog();
            }
        }
        public void EditExtendedTag( string filename )
        {
            Mp3File mp3File = null;

            try
            {
                // create mp3 file wrapper; open it and read the tags
                mp3File = new Mp3File(filename);
            }
            catch (Exception ex)
            {
                ExceptionMessageBox.Show(_form, ex, "Error Reading Tag");
                return;
            }

            if (mp3File.TagModel != null)
            {
                // create dialog and give it the ID3v2 block for editing
                // this is a bit sneaky; it uses the edit dialog straight out of TagScanner.exe as if it was a dll.
                TagEditor.ID3PowerEdit id3PowerEdit = new TagEditor.ID3PowerEdit();
                id3PowerEdit.TagModel = mp3File.TagModel;
                id3PowerEdit.ShowDialog();
            }
        }