Ejemplo n.º 1
0
        public SunbirdMBWindowViewModel(SunbirdMBGame sunbirdMBGame)
        {
            SunbirdMBGame = sunbirdMBGame;

            C_Sort = new RelayCommand((o) => SortCubes());
            C_Save = new RelayCommand((o) => SaveGame());
            C_Exit = new RelayCommand((o) => ExitAppWithoutSaving());

            CubeDesignerViewModel = new CubeDesignerViewModel(sunbirdMBGame);
            decoCatalogViewModel  = new DecoCatalogViewModel(sunbirdMBGame);
            LoggerViewModel       = new LoggerViewModel();
            MainToolbarViewModel  = new MainToolbarViewModel(this);
        }
Ejemplo n.º 2
0
 private void SortCubes()
 {
     CubeDesignerViewModel.SortAll();
 }