public ControllTypeSelector(string label, bool canNull, params Type[] types) : base(null) { TypeVariants = new List <Type>(); CanNull = canNull; _Popup = new ControllPopup <Type>(label, canNull, types); _Popup.EventChange += type => { if (EventChange != null) { EventChange(type); } Selected = type; }; }
public ControllObjectConstructor(string label, bool canNull, params ConstructorInfo[] constructors) : base(null) { _constructorPopup = new ControllPopup <ConstructorInfo>(label, canNull, ConstructorsPopupValues(constructors)); _constructorPopup.EventChange += RefreshConstructor; RefreshConstructor(_constructorPopup.Selected); }