public HallOfFameView(GlobalGameModel gameModel) { InitializeComponent(); this.gameModel = gameModel; this.gameModel.HallOfFame.recordAdded += this.refreshList; refreshList(this, new EventArgs()); }
public GameWindow() { InitializeComponent(); gameModel = new GlobalGameModel(); mainMenu = new MainMenuView(gameModel); mainMenu.startGamePressed += this.switchToGameView; mainMenu.hallOfFamePressed += this.switchToHallOfFame; hallOfFame = new HallOfFameView(gameModel); hallOfFame.backPressed += this.switchToMenu; this.switchView(mainMenu); }
public MapView(GlobalGameModel gameModel, GameService service) { InitializeComponent(); this.gameModel = gameModel; gameManager = new GameManager(this, service, new ListBoxLogger(Logger) ); }
public MainMenuView(GlobalGameModel gameModel) { InitializeComponent(); this.gameModel = gameModel; }