public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     CornerRadius cr = (CornerRadius)value;
     IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
     if (edSvc != null)
     {
         CornerRadiusEditorControl control = new CornerRadiusEditorControl(cr);
         edSvc.DropDownControl(control);
     }
     return new CornerRadius(cr.TopLeft, cr.TopRight, cr.BottomLeft, cr.BottomRight);
 }
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            CornerRadius cr = (CornerRadius)value;
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            if (edSvc != null)
            {
                CornerRadiusEditorControl control = new CornerRadiusEditorControl(cr);
                edSvc.DropDownControl(control);
            }
            return(new CornerRadius(cr.TopLeft, cr.TopRight, cr.BottomLeft, cr.BottomRight));
        }