Ejemplo n.º 1
0
 void OptionsWindowClosed(object sender, EventArgs e)
 {
     releaseCollection = new AutoFilterReleases(R.Data.Releases.ToList(), "Releases");
     MainBigList[0]    = releaseCollection;
     gameCollection    = new AutoFilterGames(R.Data.Games.ToList(), "Games");
     MainBigList[1]    = gameCollection;
 }
Ejemplo n.º 2
0
    public MainWindowViewModel()
    {
        Stopwatch watch = Stopwatch.StartNew();

        MainBigList = new ObservableCollection <object>
        {
            (releaseCollection = new AutoFilterReleases(R.Data.Releases.Local, "Releases")),
            (gameCollection = new AutoFilterGames(R.Data.Games.Local, "Games")),
            (platformCollection = new AutoFilterPlatforms(R.Data.Platforms.Local, "Platforms")),
            (emulatorCollection = new AutoFilterEmulators(R.Data.Emulators.Local, "Emulators")),
            (CollectionList = new CollectionList("Collections"))
        };
        Reporter.Report($"Filters created: {watch.Elapsed.TotalSeconds:f1}");

        InitializeCommands();
    }