public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { if (context != null && context.Instance != null) return UITypeEditorEditStyle.DropDown; return base.GetEditStyle(context); }