private void Yathzee_Load(object sender, EventArgs e) { //toevoegen yathzee YahtzeeController yahtzee = new YahtzeeController(); YahtzeeView yahtzeeView = yahtzee.getView(); yahtzeeView.Location = new Point(0, 0); yahtzee.initialize(); Controls.Add(yahtzeeView); }
private void Yathzee_Load(object sender, EventArgs e) { //toevoegen yathzee YahtzeeController yahtzee = new YahtzeeController(); YahtzeeView yahtzeeView = yahtzee.getView(); yahtzeeView.Location = new Point(0, 0); yahtzee.initialize(); Controls.Add(yahtzeeView); //toevoegen scorebord ScoreBoardController scorebord = new ScoreBoardController(yahtzee); ScoreBoardView scorebordView = scorebord.getView(); scorebordView.Location = new Point(-10, 170); // posities zichtbaar maken van scoreboarden Controls.Add(scorebordView); }