public void AddUnique(ToConvertObj o) { foreach(Control c in Controls) { if( c is ConvertObjControl) { if (((ConvertObjControl)c).objToConvert.Source.FullName == o.Source.FullName) { return; } } } Controls.AddVertical(new ConvertObjControl(o)); }
public ConvertObjControl(ToConvertObj o) { InitializeComponent(); objToConvert = o; }