public void AddToPlaylist(PlayListInfoVideo P_list) { if (listView_myvideo.SelectedItems.Count == 0) { SelectAll(); } for (int i = 0; i < listView_myvideo.SelectedItems.Count; i++) { P_list.AddItems(new VideoInfo(listView_myvideo.SelectedItems[i].SubItems[5].Text)); } P_list.Export(); }
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]); } }
public PlaylistVideo() { using (StreamWriter sw = new StreamWriter(path, true)) sw.Close(); using (StreamReader sr = new StreamReader(path)) { string lines; PlayListInfoVideo playListInfo = new PlayListInfoVideo(); while ((lines = sr.ReadLine()) != null) { string[] words = lines.Split('\t'); playListInfo.Name_PL = words[0]; playListInfo.Date_Create = Convert.ToDateTime(words[1]); playListInfo.Import(); Listvideo.Add(playListInfo); } sr.Close(); } }
public void AddItems(PlayListInfoVideo item) { Listvideo.Add(item); }