public static DesignSyncSelectionOption AddOption(List <SelectableOptionViewModel> list, string name)
        {
            if (list == null)
            {
                throw new ArgumentNullException("list");
            }
            DesignSyncSelectionOption option = new DesignSyncSelectionOption(name)
            {
                Label = name
            };

            list.Add(new SelectableOptionViewModel(option, null, ""));
            return(option);
        }
        public DesignContentViewModel()
        {
            this.SyncRules = new DesignSyncRules();
            List <SelectableOptionViewModel> list = new List <SelectableOptionViewModel>();

            AddOption(list, "REM").CreateChildSelectableOption("Album", "Automatic for the People");
            AddOption(list, "U2").CreateChildSelectableOption("Album", "Joshua Tree");
            AddOption(list, "Michael Jackson").CreateChildSelectableOption("Album", "Thriller");
            AddOption(list, "Pick Floyd").CreateChildSelectableOption("Album", "The Wall");
            AddOption(list, "Journey").CreateChildSelectableOption("Album", "Faithfully");
            this.Artists = AddCollectionViewSource(list);
            list         = new List <SelectableOptionViewModel>();
            DesignSyncSelectionOption option = AddOption(list, "Pop");

            option             = AddOption(list, "Classical");
            option             = AddOption(list, "90s");
            option             = AddOption(list, "80s");
            option             = AddOption(list, "Classic Rock");
            this.Genres        = AddCollectionViewSource(list);
            list               = new List <SelectableOptionViewModel>();
            option             = AddOption(list, "My Favorites");
            option             = AddOption(list, "Party mix");
            option             = AddOption(list, "Newest albums");
            option             = AddOption(list, "Chill");
            option             = AddOption(list, "Jed's list");
            this.Playlists     = AddCollectionViewSource(list);
            list               = new List <SelectableOptionViewModel>();
            option             = AddOption(list, "Bill and Ted's Great Adventure");
            option             = AddOption(list, "Jurasic Park");
            option             = AddOption(list, "Raider's of the Lost Ark");
            option             = AddOption(list, "The Muppet Movie");
            option             = AddOption(list, "Columbo");
            option             = AddOption(list, "American Idol");
            option             = AddOption(list, "Star Trek: Next Generation");
            this.MoviesTVShows = AddCollectionViewSource(list);
            list               = new List <SelectableOptionViewModel>();
            option             = AddOption(list, "Wait Wait Don't Tell Me");
            option             = AddOption(list, "This American Life");
            option             = AddOption(list, "Windows Phone Basics");
            this.Podcasts      = AddCollectionViewSource(list);
            list               = new List <SelectableOptionViewModel>();
            option             = AddOption(list, "Doh!");
            option             = AddOption(list, "Hah hah!");
            option             = AddOption(list, "Can't Touch This");
            this.Ringtones     = AddCollectionViewSource(list);
            list               = new List <SelectableOptionViewModel>();
            option             = AddOption(list, "My Pictures (no items)");
            AddOption(list, "Public Pictures").CreateChildSelectableOption("Album", "Summer Vacation");
            this.PhotoVideoAlbums = AddCollectionViewSource(list);
        }
 public static DesignSyncSelectionOption AddOption(List<SelectableOptionViewModel> list, string name)
 {
     if (list == null)
     {
         throw new ArgumentNullException("list");
     }
     DesignSyncSelectionOption option = new DesignSyncSelectionOption(name) {
         Label = name
     };
     list.Add(new SelectableOptionViewModel(option, null, ""));
     return option;
 }