void AddCollection()
        {
            Collection collection = new Collection
            {
                Title = "New friggin collection",
                Type  = "Game"
            };

            CollectionList.Add(collection);
        }
Beispiel #2
0
        public MainWindowViewModel()
        {
            MainBigList = new ObservableCollection <object>
            {
                (releaseCollection = new AutoFilterReleases(R.Data.Releases.ToList(), "Releases")),
                (gameCollection = new AutoFilterGames(R.Data.Games.ToList(), "Games")),
                (platformCollection = new AutoFilterPlatforms(R.Data.Platforms.ToList(), "Platforms")),
                (emulatorCollection = new AutoFilterEmulators(R.Data.Emulators.ToList(), "Emulators")),
                (CollectionList = new CollectionList("Collections"))
            };

            InitializeCommands();
        }
 void RemoveCollection()
 {
     CollectionList.Remove(MainBigSelection as Collection);
 }