public override void enableEventObjects() { foreach (Tile t in theBoard.boardTiles) { if (t is TerrainTile) { TerrainTile tt = (TerrainTile)t; tt.getNumberChip().Click += executeUpdate; if (tt.getNumberChip().isBlocked()) { oldThiefLocation = tt.getNumberChip(); } } } foreach (Settlement set in theBoard.settlementLocations) { set.Click += executeUpdate; } }
public override void disableEventObjects() { foreach (Tile t in theBoard.boardTiles) { if (t is TerrainTile) { TerrainTile tt = (TerrainTile)t; tt.getNumberChip().Click -= executeUpdate; } } foreach (Settlement set in theBoard.settlementLocations) { set.Click -= executeUpdate; } }