Ejemplo n.º 1
0
        private void frmSlotmachine_Load(object sender, EventArgs e)
        {
            int i = 0, iLen = 3, xPos = -20, yPos = 0, XMove = 170;

            for (; i < iLen; i++)
            {
                BarController bController = new BarController(this);
                BarView       bView       = bController.view;
                bView.Location = new System.Drawing.Point(xPos, yPos);
                Controls.Add(bView);
                xPos += XMove;

                listBarControllers.Add(bView);
            }
        }
        private void frmSlotmachine_Load(object sender, EventArgs e)
        {
            int i = 0, iLen = 3, xPos = -20, yPos = 0, XMove = 170;

            for (; i < iLen; i++)
            {
                BarController bController = new BarController( this );
                BarView bView = bController.view;
                bView.Location = new System.Drawing.Point(xPos, yPos);
                Controls.Add(bView);
                xPos += XMove;

                listBarControllers.Add(bView);

            }
        }
 public frmSlotmachine(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public BarView(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }
Ejemplo n.º 5
0
 public frmSlotmachine(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }