public void Save() { if (File.Exists(FileName)) { #if !DEBUG try { #endif var tag = new Id3Tag { Title = Title, Album = Album, Artist = Artist, Comment = Comment, }; tag.Write(FileName); TryClose(true); _eventAggregator.PublishOnUIThread(new DownloadEditedMessage(FileName, Title, Artist, Album)); #if !DEBUG } catch (Exception ex) { DialogHelper.ShowError("Save ID3 Tags Error", ex.Message); } #endif } else { DialogHelper.ShowError("Download File Missing", "The file '{0}' does not exist", FileName); } }