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)); }
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); }
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; }