Пример #1
0
 protected void OnPlaylistImported(PlaylistImportedEventArgs e)
 {
     if (PlaylistImported != null)
     {
         PlaylistImported(this, e);
     }
 }
Пример #2
0
        private void playToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var playlist = savedPlaylists.Where(m => m.Name == treeView.SelectedNode.Text).FirstOrDefault();

            PlaylistImportedEventArgs ple = new PlaylistImportedEventArgs(playlist, playlist.Name);

            this.OnPlaylistImported(ple);

            this.lblStatus.Text    = "The playlist '" + playlist.Name + "' has been imported successfully!";
            this.lblStatus.Visible = true;
        }