コード例 #1
0
        protected AbstractMainWindowViewModel(Window view)
        {
            View = view;
            var dummyGame = Game.Init(7, MockUtil.DummyPlayerSpecPair(7));

            GameScreenViewModel         = new GameScreenViewModel(MessengerInstance, dummyGame);
            GameCreationScreenViewModel = new GameCreationScreenViewModel(MessengerInstance);
            StartupScreenViewModel      = new StartupScreenViewModel(MessengerInstance);
            LoadGameScreenViewModel     = new LoadGameScreenViewModel(MessengerInstance);
            SaveManager = new SaveManager(MessengerInstance);

            QuitCommand = new RelayCommand(ShutdownApplication);

            RegisterMessageHandlers();
        }