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