public async Task Load() { if (!string.IsNullOrEmpty(this.FileName)) { var tag = await MP3TagAccessor.ReadFile(FileName); this.Title = tag.Title; this.Artist = tag.Artist; } }
public async Task Save() { if (!string.IsNullOrEmpty(this.FileName)) { var tag = await MP3TagAccessor.ReadFile(FileName); tag.Title = this.Title; tag.Artist = this.Artist; await MP3TagAccessor.UpdateInfo(this.FileName, tag); } }