Exemplo n.º 1
0
        private void createPlaylist_Click(object sender, EventArgs e)
        {
            NewPlayListForm newForm = new NewPlayListForm(this, String.Empty);

            newForm.Location        = PointToClient(Cursor.Position);
            newForm.FormBorderStyle = FormBorderStyle.None;
            newForm.ShowDialog();
        }
Exemplo n.º 2
0
 private void addContextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem.Text == "create new playlist")
     {
         NewPlayListForm newForm = new NewPlayListForm(this._parent._parent, this._dir);
         newForm.FormBorderStyle = FormBorderStyle.None;
         newForm.ShowDialog();
     }
     else
     {
         string playlistName = e.ClickedItem.Text;
         foreach (Playlist x in this._parent._parent._playListForm.GetPlaylist())
         {
             if (x._name == playlistName)
             {
                 x._songDir.Add(this._dir);
                 break;
             }
         }
     }
     songInfoContextMenu.Close();
 }