You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
808 B
C#
29 lines
808 B
C#
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<string> list = new List<string>();
|
|
list.Add("胶料");
|
|
list.Add("小料");
|
|
return new TypeConverter.StandardValuesCollection(list);
|
|
}
|
|
}
|
|
}
|