コード例 #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);
            }
        }
コード例 #2
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);

            }
        }
コード例 #3
0
 public frmSlotmachine(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }
コード例 #4
0
 public BarView(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }
コード例 #5
0
 public frmSlotmachine(BarController initController)
 {
     controller = initController;
     InitializeComponent();
 }