Exemple #1
0
        private void Yahtzee_Load(object sender, EventArgs e)
        {
            sView          = scoreController.GetView();
            sView.Location = new Point(0, 0);
            Controls.Add(sView);

            for (int i = 0; i < yahtzeeController.model.AantalTeerlingen; i++)
            {
                yahtzeeController.model.AddTeerling(new TeerlingController());
                tView          = yahtzeeController.model.Teerlingen[i].GetView();
                tView.Location = new Point((i * tView.Width), sView.Height);
                Controls.Add(tView);
            }

            yView          = yahtzeeController.GetView();
            yView.Location = new Point(0, tView.Height + 135);
            Controls.Add(yView);
        }
Exemple #2
0
 public TeerlingController()
 {
     view = new Teerlingview(this);
 }
 public TeerlingController()
 {
     view = new Teerlingview(this);
 }