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); }
private void StartGame() { Minefield = minefieldFactory.CreateNew(gameConfig); }