Esempio n. 1
0
        public async Task Load()
        {
            if (!string.IsNullOrEmpty(this.FileName))
            {
                var tag = await MP3TagAccessor.ReadFile(FileName);

                this.Title  = tag.Title;
                this.Artist = tag.Artist;
            }
        }
Esempio n. 2
0
        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);
            }
        }