public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IWindowsFormsEditorService wfes = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; if (wfes != null) { EventObjectSelect _eventObjSelect = new EventObjectSelect((EventObjEditorReturnObject)value, wfes); _eventObjSelect._wfes = wfes; wfes.DropDownControl(_eventObjSelect); value = _eventObjSelect.returnObject; } return(value); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IWindowsFormsEditorService wfes = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; if (wfes != null) { EventObjectSelect _eventObjSelect = new EventObjectSelect((EventObjEditorReturnObject)value, wfes); _eventObjSelect._wfes = wfes; wfes.DropDownControl(_eventObjSelect); value = _eventObjSelect.returnObject; } return value; }