private void setupCards()
 {
     BingoCard1 = new BingoCard(RandomNumbers(12, 1, 30));
     foreach (var bingoCardNumber in BingoCard1.Numbers)
     {
         bingoCardNumber.Called = r.Next(1, 100) < 20;
     }
     BingoCard2 = new BingoCard(RandomNumbers(12, 1, 30));
     foreach (var bingoCardNumber in BingoCard2.Numbers)
     {
         bingoCardNumber.Called = r.Next(1, 100) < 20;
     }
     BingoCard3 = new BingoCard(RandomNumbers(12, 1, 30));
     foreach (var bingoCardNumber in BingoCard3.Numbers)
     {
         bingoCardNumber.Called = r.Next(1, 100) < 20;
     }
     BingoCard4 = new BingoCard(RandomNumbers(12, 1, 30));
     foreach (var bingoCardNumber in BingoCard4.Numbers)
     {
         bingoCardNumber.Called = r.Next(1, 100) < 20;
     }
     PreviousNumbersCalled = new List <int>(RandomNumbers(28, 1, 30));
 }
        private void drawBingoCard(BingoCard card, Point cardPosition)
        {
            mainLayer.Save();
            mainLayer.Translate(cardPosition.X, cardPosition.Y);

            mainLayer.DrawImage(BingoCard, 0, 0);

            mainLayer.Save();
            mainLayer.Translate(31, 28);
            for (int x = 0; x < BingoGame.BingoCard.NumbersWide; x++)
            {
                for (int y = 0; y < BingoGame.BingoCard.NumbersHigh; y++)
                {
                    var bingoCardNumber = card.GetNumberAt(x, y);

                    var color = BingoCardNumber.ColorToColor(bingoCardNumber.Color);

                    mainLayer.DrawRectangle(color, x * 33, y * 34, 30, 30);
                    mainLayer.DrawImage(_renderer.GetImage("leftBoard.numbers.white." + bingoCardNumber.Number), x * 33 + 1, y * 34 + 8);
                }
            }
            mainLayer.Restore();
            mainLayer.Restore();
        }