Example #1
0
 public Channel(String name, String url)
 {
     this.Playlist = new Playlist();
     this.Name = name;
     this.URL = url;
 }
Example #2
0
        private void LoadConfig()
        {
            config = xmlLoader.LoadConfiguration("config.xml");
            currentPlaylist  = config.Playlists[0];
            foreach (Models.Program program in currentPlaylist.Programs)
            {

                var item = listView1.Items.Add(program.Title);
                item.SubItems.Add(program.Start.ToShortTimeString());
                item.SubItems.Add(program.Channel);
            }
            listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
        }