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.
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SigmaDrawerElement.Descriptor
|
|
|
|
|
|
{
|
|
|
|
|
|
public class DrawerEllipseDescriptor : BaseTypeDescriptor
|
|
|
|
|
|
{
|
|
|
|
|
|
private Dictionary<string, string> _dic = new Dictionary<string, string>
|
|
|
|
|
|
{
|
|
|
|
|
|
{"基本信息","\t圆"},
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public DrawerEllipseDescriptor(ICustomTypeDescriptor descriptor) : base(descriptor)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override bool TryGetCategory(ProxyPropertyDescriptor ppd, out string value)
|
|
|
|
|
|
{
|
|
|
|
|
|
return _dic.TryGetValue(ppd.BaseCategory, out value);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override bool TryGetDisplayName(ProxyPropertyDescriptor ppd, out string value)
|
|
|
|
|
|
{
|
|
|
|
|
|
return _dic.TryGetValue(ppd.BaseDisplayName, out value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class DrawerEllipseInfoAttribute : BaseDescriptorAttribute
|
|
|
|
|
|
{
|
|
|
|
|
|
public DrawerEllipseInfoAttribute() : base(typeof(DrawerEllipse), typeof(DrawerEllipseDescriptor))
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|