示例#1
0
        public MainWindowViewModel(IMinefieldFactory minefieldFactory,
                                   IDialogService dialogService, INavigationService navigationService)
        {
            this.navigationService = navigationService;
            this.minefieldFactory  = minefieldFactory;
            this.dialogService     = dialogService;

            gameConfig = new GameConfig();
            gameConfig.SetMedium();
            Minefield = minefieldFactory.CreateNew(gameConfig);
        }
示例#2
0
 private void StartGame()
 {
     Minefield = minefieldFactory.CreateNew(gameConfig);
 }