public ShellViewModel()
        {
            Genres = new ReactiveCollection<Genre>(Data.Genres);
            Albums = new ReactiveCollection<Album>(Data.Albums);
            Artists = new ReactiveCollection<Artist>(Data.Artists);

            albums = new PanoramaGroup("trending tracks");
            artists = new PanoramaGroup("trending artists");

            Groups = new ReactiveCollection<PanoramaGroup> { albums, artists };

            artists.SetSource(Data.Artists.Take(25));
            albums.SetSource(Data.Albums.Take(25));
        }
        public MainWindowViewModel(Dispatcher dispatcher)
        {

            SampleData.Seed();
            Albums = SampleData.Albums;
            Artists = SampleData.Artists;
            Busy = true;
            _albums = new PanoramaGroup("trending tracks");
            _artists = new PanoramaGroup("trending artists");
            Groups = new ObservableCollection<PanoramaGroup> {_albums, _artists};

            _artists.SetSource(SampleData.Artists.Take(25));
            _albums.SetSource(SampleData.Albums.Take(25));
            Busy = false;
        }
        public MainWindowViewModel()
        {
            SampleData.Seed();

            // create accent color menu items for the demo
            this.AccentColors = ThemeManager.DefaultAccents
                                            .Select(a => new AccentColorMenuData() { Name = a.Name, ColorBrush = a.Resources["AccentColorBrush"] as Brush })
                                            .ToList();
            
            Albums = SampleData.Albums;
            Artists = SampleData.Artists;
            
            Busy = true;

            _albums = new PanoramaGroup("trending tracks");
            _artists = new PanoramaGroup("trending artists");

            Groups = new ObservableCollection<PanoramaGroup> { _albums, _artists };

            _artists.SetSource(SampleData.Artists.Take(25));
            _albums.SetSource(SampleData.Albums.Take(25));

            Busy = false;
        }
        private void OnProjectLoaded(IEnumerable<Project> obj)
        {
            Projects = new ObservableCollection<Project>(obj);
            PanoramaGroups = new ObservableCollection<PanoramaGroup>();
            PanoramaGroup group = new PanoramaGroup("Projects");

            PanoramaGroups.Add(group);
            group.SetSource(Projects.Select(p=>
                                                {
                                                    return new ProjectWrapper {Project = p};
                                                }));
        }