Esempio n. 1
0
 private void SearchControl_PlaylistSaved(object sender, PlaylistSavedEventArgs e)
 {
     if (uPlayer1.Playlist.Count != 0)
     {
         PlaylistServices.Instance.SubmitPlaylist(Me, e.PlaylistName, uPlayer1.Playlist, e.IsPrivate);
     }
 }
Esempio n. 2
0
        private void SearchControl_PlaylistSaved(object sender, PlaylistSavedEventArgs e)
        {
            uint i = 0;

            if (uPlayer1.Playlist.Count != 0)
            {
                PlaylistServices.Instance.SubmitPlaylist(LoginServices.Instance.RegisteredUser.First().Value, e.PlaylistName, uPlayer1.Playlist.Select(x =>
                {
                    x.FileBinary = null;
                    x.N          = i;
                    i++;
                    return(x);
                }).ToList(), e.IsPrivate);
            }
        }
 protected virtual void OnPlaylistSaved(PlaylistSavedEventArgs e) => PlaylistSaved?.Invoke(this, e);