コード例 #1
0
 public Form_Video_Playlist(Video_Playlist parent = null)
 {
     this.parent = parent;
     InitializeComponent();
     lb_NamePl.Text = this.parent.NamePlay;
     this.parent.parent.Is_Playing_NowPlaying = false;
     if (PlaylistVideo.Instance.GetListVideo(this.parent.ID_Playlist).count() > 0)
     {
         LoadListVideo();
     }
     toolStrip.ItemClicked += ClickItem;
 }
コード例 #2
0
 void ShowPlayList()
 {
     FLP_videoplaylist.Controls.Clear();
     listpl.Clear();
     for (int i = 0; i < PlaylistVideo.Instance.GetAllPlayListVideo().Count; i++)
     {
         PlayListInfoVideo Playlistvideo  = PlaylistVideo.Instance.GetListVideo(i);
         Video_Playlist    video_Playlist = new Video_Playlist(i, Playlistvideo.Name_PL, Playlistvideo.GetVideo().Count, this.parent);
         listpl.Add(video_Playlist);
         FLP_videoplaylist.Controls.Add(listpl[i]);
     }
 }