public Control.PixelLight1D AddNewRope(string name, int pixels) { int scale = 4; var moduleControl = new Control.ModuleControl(); moduleControl.Text = name; moduleControl.Size = new System.Drawing.Size(scale * pixels + 6, 40); var control = new Control.PixelLight1D(scale); moduleControl.ChildControl = control; flowLayoutPanelLights.Controls.Add(moduleControl); return(control); }
public Control.PixelLight1D AddNewRope(string name, int pixels) { int scale = 4; var moduleControl = new Control.ModuleControl(); moduleControl.Text = name; moduleControl.Size = new System.Drawing.Size(scale * pixels + 6, 40); var control = new Control.PixelLight1D(scale); moduleControl.ChildControl = control; flowLayoutPanelLights.Controls.Add(moduleControl); return control; }