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); } }
private Task ReplaceId3TagsAsync() { State = DownloadState.UpdatingId3; var id3Tag = new Id3Tag { Album = FeedTitle, Artist = FeedTitle, Title = Title }; return id3Tag.WriteAsync(FileName); }