2using System.Collections.Generic;
7using System.Threading.Tasks;
8using System.Windows.Forms.Design;
29 public override UITypeEditorEditStyle
GetEditStyle(ITypeDescriptorContext context)
31 return UITypeEditorEditStyle.DropDown;
41 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider,
object value)
43 IWindowsFormsEditorService svc =
null;
46 svc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
50 DictionaryParameterEditorControl ctrl =
new DictionaryParameterEditorControl((
string)value, svc);
51 svc.DropDownControl(ctrl);
The DictionaryParamEditor is used to visually edit dictionary based parameters that are stored as a k...
DictionaryParamEditor()
The constructor.
override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
The EditValue displays the editing control and returns the new edited value.
override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
Returns the edit style DROPDOWN