Example #1
0
 public MainMenu(Game game, DGetItem<Item> itemGenerator, MonsterRepository monsterRepository)
 {
     InitializeComponent();
     this.game = game;
     this.itemGenerator = itemGenerator;
     this.monsterRepository = monsterRepository;
 }
Example #2
0
 public GameMenu(Game game, DGetItem<Item> itemGenerator, Player player, MonsterRepository monsterRepository)
 {
     InitializeComponent();
     this.game = game;
     this.itemGenerator = itemGenerator;
     this.player = player;
     this.monsterRepository = monsterRepository;
     this.UpdateText();
 }