public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value) { if (context != null && context.Instance != null && provider != null) { IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { MapToPropertyUITypeEditor control = new MapToPropertyUITypeEditor(value, edSvc); edSvc.DropDownControl(control); return(control.PropertyName); } } return(value); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value) { if (context != null && context.Instance != null && provider != null) { IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { MapToPropertyUITypeEditor control = new MapToPropertyUITypeEditor(value, edSvc); edSvc.DropDownControl(control); return control.PropertyName; } } return value; }