예제 #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);
     }
 }
예제 #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;
 }
예제 #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);
     }
 }