Esempio n. 1
0
        public void AddToNewPlaylist()
        {
            if (lv_My_Music.SelectedItems.Count == 0)
            {
                SelectAll();
            }
            List <Music_Song> lstMusic = new List <Music_Song>();

            for (int i = 0; i < lv_My_Music.SelectedItems.Count; i++)
            {
                lstMusic.Add(new Music_Song(lv_My_Music.SelectedItems[i].SubItems[6].Text));
            }
            form_Music_NewPlaylist form_Playlist = new form_Music_NewPlaylist(this.parent, lstMusic);

            form_Playlist.StartPosition = FormStartPosition.CenterParent;
            form_Playlist.ShowDialog();
        }
Esempio n. 2
0
 public void btn_AddPl_Click(object sender, EventArgs e)
 {
     if (btn_Music.selected == true)
     {
         form_Music_NewPlaylist form_Playlist = new form_Music_NewPlaylist(this);
         Point p = new Point(this.Width / 2 - form_Playlist.Width / 2, this.Height / 2 - form_Playlist.Height / 2);
         form_Playlist.StartPosition = FormStartPosition.CenterParent;
         form_Playlist.ShowDialog();
     }
     if (btn_Video.selected == true)
     {
         Form_Video_NewPlaylist form_Playlist = new Form_Video_NewPlaylist(this);
         Point p = new Point(this.Width / 2 - form_Playlist.Width / 2, this.Height / 2 - form_Playlist.Height / 2);
         form_Playlist.StartPosition = FormStartPosition.CenterParent;
         form_Playlist.ShowDialog();
     }
 }