public void Connect(INeedsLabelLight output) { output.LabelLightControl = AddNewLight(output.Name); if (output is IUpdateableControl) { lock (this.updateableControls) { this.updateableControls.Add((IUpdateableControl)output); } } }
public void Connect(INeedsLabelLight output, string labelName) { output.LabelLightControl = AddNewLight(labelName); }