public Control.StrobeBulb AddNewLight(string name) { var moduleControl = new Control.ModuleControl(); moduleControl.Text = name; moduleControl.Size = new System.Drawing.Size(80, 80); var control = new Control.StrobeBulb(); moduleControl.ChildControl = control; control.Color = Color.Black; flowLayoutPanelLights.Controls.Add(moduleControl); return(control); }
public Control.StrobeBulb AddNewLight(string name) { var moduleControl = new Control.ModuleControl(); moduleControl.Text = name; moduleControl.Size = new System.Drawing.Size(80, 80); var control = new Control.StrobeBulb(); moduleControl.ChildControl = control; control.Color = Color.Black; flowLayoutPanelLights.Controls.Add(moduleControl); return control; }