public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { EnumCheckedListBox box1; if (((context != null) && (context.Instance != null)) && (provider != null)) { this.edSvc = ((IWindowsFormsEditorService) provider.GetService(typeof(IWindowsFormsEditorService))); if (this.edSvc != null) { box1 = new EnumCheckedListBox(value); this.edSvc.DropDownControl(box1); value = box1.GetNewValue(); } } return value; }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { EnumCheckedListBox box1; if (((context != null) && (context.Instance != null)) && (provider != null)) { this.edSvc = ((IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService))); if (this.edSvc != null) { box1 = new EnumCheckedListBox(value); this.edSvc.DropDownControl(box1); value = box1.GetNewValue(); } } return(value); }