9 internal class CoffeeMakerParamsEditor : UITypeEditor
11 #region Overrides of UITypeEditor
13 public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
15 return UITypeEditorEditStyle.Modal;
18 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider,
object value)
21 var editorService = provider?.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
23 if (editorService?.ShowDialog(theForm) == DialogResult.OK)
25 return theForm.Parameters;