/// <inheritdoc/> public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { if (provider != null) { editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; } if (editorService != null) { var control = new RadiansEditorControl((Radians)value, editorService); editorService.DropDownControl(control); value = control.Radians; } return value; }
/// <inheritdoc/> public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { if (provider != null) { editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; } if (editorService != null) { var control = new RadiansEditorControl((Radians)value, editorService); editorService.DropDownControl(control); value = control.Radians; } return(value); }