Beispiel #1
0
            public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext context)
            {
                CustomChoicesAttributeList Choices = (CustomChoices.CustomChoicesAttributeList)context.PropertyDescriptor.Attributes[typeof(CustomChoicesAttributeList)];

                if (oChoices != null)
                {
                    return(oChoices.Values);
                }
                return(base.GetStandardValues(context));
            }
Beispiel #2
0
            public override bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext context)
            {
                bool returnValue;
                CustomChoicesAttributeList Choices = (CustomChoicesAttributeList)context.PropertyDescriptor.Attributes[typeof(CustomChoicesAttributeList)];

                if (oChoices != null)
                {
                    return(true);
                }
                if (Choices != null)
                {
                    oChoices    = Choices;
                    returnValue = true;
                }
                else
                {
                    returnValue = false;
                }
                return(returnValue);
            }
Beispiel #3
0
            public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
            {
                bool returnValue;
                var  Choices =
                    (CustomChoicesAttributeList)
                    context.PropertyDescriptor.Attributes[typeof(CustomChoicesAttributeList)];

                if (oChoices != null)
                {
                    return(true);
                }
                if (Choices != null)
                {
                    oChoices    = Choices;
                    returnValue = true;
                }
                else
                {
                    returnValue = false;
                }
                return(returnValue);
            }
			public override bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext context)
			{
				bool returnValue;
				CustomChoicesAttributeList Choices =  (CustomChoicesAttributeList) context.PropertyDescriptor.Attributes[typeof(CustomChoicesAttributeList)];
				if (oChoices != null)
				{
					return true;
				}
				if (Choices != null)
				{
					oChoices = Choices;
					returnValue = true;
				}
				else
				{
					returnValue = false;
				}
				return returnValue;
			}