Exemple #1
0
        public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext context)
        {
            OptionParameter param = (OptionParameter)context.Instance;

            return(param.RestrictedToList);
        }
Exemple #2
0
        public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext context)
        {
            OptionParameter param = (OptionParameter)(context.Instance);

            return(new System.ComponentModel.TypeConverter.StandardValuesCollection(param.OptionList));
        }