public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            if (edSvc != null)
            {
                FileAttributesBrowserCtl frm = new FileAttributesBrowserCtl(edSvc, (FileAttributes)value);
                edSvc.DropDownControl(frm);

                return(frm.Attributes);
            }

            return(value);
        }
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
            if (edSvc != null)
            {
                FileAttributesBrowserCtl frm = new FileAttributesBrowserCtl(edSvc, (FileAttributes)value);
                edSvc.DropDownControl(frm);

                return frm.Attributes;
            }

            return value;
        }