Пример #1
0
        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;
            };
        }
Пример #2
0
 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);
 }