Exemple #1
0
        public Yahtzee()
        {
            InitializeComponent();

              ////Teerling
              int aantalTeerlingen = 3;

              for (int i = 0; i < aantalTeerlingen; i++)
              {
            TeerlingController teerling1 = new TeerlingController(this);
            teerlingen.Add(teerling1);

            TeerlingView teerlingV = teerling1.getView();
            teerlingV.Location = new System.Drawing.Point(i * teerlingV.Width, teerlingV.Location.Y);
            Controls.Add(teerlingV);
              }

              scoreboard.getView().Location = new System.Drawing.Point(10, 250);
              Controls.Add(scoreboard.getView());
        }
Exemple #2
0
        public TeerlingView(TeerlingController c)
        {
            InitializeComponent();

              controller = c;
        }