public ScoreController(GameController gameController) { container = gameController; Scoreview = new ScoreView(this); model = new ScoreModel(); }
private void Yahtzee_Load(object sender, EventArgs e) { for (int i = 0; i < aantalTeerlingen; i++) { TeerlingController tijdelijkeTeerling = new TeerlingController(); teerlingen.Add(tijdelijkeTeerling); TeerlingView tView = teerlingen[i].GetView(); int horizontalPosition = i * tView.Width; tView.Location = new System.Drawing.Point(horizontalPosition, 0); Controls.Add(tView); } ScoreView sView = scoreController.GetView(); int scoreHorizontalPosition = aantalTeerlingen * sView.Width; sView.Location = new System.Drawing.Point(scoreHorizontalPosition, 0); Controls.Add(sView); }
public ScoreController() { //maak nieuwe instantie aan van view view = new ScoreView(this); }