public void addSceneConfig(string[] games) { controlLineList = controlLineList.addControlLine(games); pnlSceneConfig.Controls.AddRange(controlLineList.draw(controlLineList.getLength())); btnAddSceneConfig.Location = new Point(6, 22 + 37 * controlLineList.getLength()); controlLineList.fillComboboxes(sceneNamesStr); }
public int getLength() { return(1 + next.getLength()); }
private void btnAddSceneConfig_LocationChanged(object sender, EventArgs e) { pnlSceneConfig.Size = new Size(pnlSceneConfig.Size.Width, 52 + 37 * controlLineList.getLength()); }