using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace Mesnac.Controls.Feeding { public class MaterialTypeConverter: TypeConverter { public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return true; } public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { List list = new List(); list.Add("胶料"); list.Add("小料"); return new TypeConverter.StandardValuesCollection(list); } } }