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 BarController( frmSlotmachine initSlot ) { slot = initSlot; view = new BarView(this); }
public BarController(frmSlotmachine initSlot) { slot = initSlot; view = new BarView(this); }