Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //init
            //cards = new CardDeckController();
            dealer = new DealerController();
            player1 = new PlayerController(dealer);
            bet = new PlayerBetController(player1);
            startReset = new StartResetController(player1, bet, dealer);

            //add
            Controls.Add(player1.getView());
            Controls.Add(bet.getView());
            Controls.Add(startReset.getView());
            //Controls.Add(cards.getView());
            Controls.Add(dealer.getView());

            //pos for bet view
            int yPosBet = 0;
            yPosBet = player1.getView().Height;
            bet.getView().Location = new Point(0, yPosBet);

            //pos for start reset view
            int xPosStart = 0;
            xPosStart = player1.getView().Width;
            startReset.getView().Location = new Point(xPosStart + 50, 0);

            //pos for dealer
            int xPosDealer = 0;
            xPosDealer = player1.getView().Width + startReset.getView().Width;
            dealer.getView().Location = new Point(xPosDealer + 80, 0);
        }
Exemplo n.º 2
0
 public StartResetView(StartResetController _controller)
 {
     _startResetController = _controller;
     InitializeComponent();
 }