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(); }
public BarView(BarController initController) { controller = initController; InitializeComponent(); }