Example #1
0
 /// <summary>
 /// </summary>
 public override void Save()
 {
     Settings.Default.PlaylistTypes.Clear();
     Settings.Default.PlaylistTypes.Add(PlaylistTypes.ToString());
     Settings.Default.ChannelSortBy    = SortBy.ToString();
     Settings.Default.ChannelSortOrder = SortOrder.ToString();
 }
Example #2
0
 public static StringCollection GetSiteStrings(PlaylistTypes PlaylistTypes)
 {
     //StringCollection col = new StringCollection();
     //foreach (string site in Enum.GetName(typeof(PlaylistType), site)
     //{
     //    col.Add(site);
     //}
     //return col;
     return(null);
 }
Example #3
0
        public Menu(PlaylistTypes playlistType, string title = "Menu", string list_ind = "ORDERED", string pointer = "<")
        {
            this.title        = title;
            this.listInd      = list_ind;
            this.pointer      = pointer;
            this.playlistType = playlistType;

            switch (playlistType)
            {
            case PlaylistTypes.Txt:
                playlist = new TxtPlaylist(@"C:\Programs\MyPrograms\C#\Canvas (Cshp dnet core)\PS\3\Data\Songs.txt");
                break;

            case PlaylistTypes.Bin:
                playlist = new BinPlaylist(@"C:\Programs\MyPrograms\C#\Canvas (Cshp dnet core)\PS\3\Data\Songs.dat");
                break;
            }
        }