Exemplo n.º 1
0
 private void MenuRenamePlaylist_Click(object sender, EventArgs e)
 {
     FrmPlaylist frmNewPlaylist = new FrmPlaylist(((ToolStripDropDownItem)sender).Text);
     if (frmNewPlaylist.ShowDialog() == DialogResult.OK)
     {
         _contentManager.PlaylistRename(((ToolStripDropDownItem)sender).Text, frmNewPlaylist.PlaylistName);
         RemovePlaylistFromUI(((ToolStripDropDownItem)sender).Text);
         AddPlaylistToUI(frmNewPlaylist.PlaylistName);
     }
 }
Exemplo n.º 2
0
 public string CreatePlaylist()
 {
     FrmPlaylist frmNewPlaylist = new FrmPlaylist();
     if (frmNewPlaylist.ShowDialog() == DialogResult.OK)
     {
         _contentManager.PlaylistCreate(frmNewPlaylist.PlaylistName);
         AddPlaylistToUI(frmNewPlaylist.PlaylistName);
         return frmNewPlaylist.PlaylistName;
     }
     return null;
 }
Exemplo n.º 3
0
 private void MenuNewPlaylist_Click(object sender, EventArgs e)
 {
     FrmPlaylist frmNewPlaylist = new FrmPlaylist();
     if (frmNewPlaylist.ShowDialog() == DialogResult.OK)
     {
         _contentManager.PlaylistCreate(frmNewPlaylist.PlaylistName);
         AddPlaylistToUI(frmNewPlaylist.PlaylistName);
     }
 }