public PlayingViewModel( IBoard board, BoardPacker boardPacker, LevelFactory levelFactory) { this.board = board; this.boardPacker = boardPacker; this.levelFactory = levelFactory; this.StartNewGameCommand = new RelayCommand(this.StartNewGame); this.AdvanceLevelCommand = new RelayCommand(this.AdvanceToNewLevel); this.StartLevelCommand = new RelayCommand(this.StartLevel); this.OpenCompanyUrlCommand = new RelayCommand(() => Process.Start(Constants.SpottedZebraUrl)); }
public EvaluateBoard() { this.content = new ContentManager(new AppServiceProvider(), Environment.CurrentDirectory); this.doodadFactory = new DoodadFactory(); this.boardPacker = new BoardPacker(Constants.NumberOfColumns, Constants.NumberOfRows); }