Exemplo n.º 1
0
        public async Task Add(Song song)
        {
            List <string> songsPaths = await GetSkipSongsPaths();

            if (songsPaths.Contains(song.Path))
            {
                return;
            }

            songsPaths.Add(song.Path);
            await SaveSkipSongsPaths(songsPaths);

            SkippedSong?.Invoke(this, System.EventArgs.Empty);
        }
Exemplo n.º 2
0
        public void Add(Song song)
        {
            List <string> songsPaths = GetSkipSongsPaths();

            if (songsPaths.Contains(song.Path))
            {
                return;
            }

            songsPaths.Add(song.Path);
            SaveSkipSongsPaths(songsPaths);

            SkippedSong?.Invoke(this);
        }
 private void OnSkippedSong(object sender, EventArgs e)
 {
     SkippedSong?.Invoke(this, new SubscriptionsEventArgs <SkipSongs, EventArgs>(sender, e));
 }
Exemplo n.º 4
0
 internal void Raise()
 {
     SkippedSong?.Invoke(this, System.EventArgs.Empty);
 }