public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { if ((context != null) && (provider != null)) { System.Windows.Forms.Design.IWindowsFormsEditorService svc = (System.Windows.Forms.Design.IWindowsFormsEditorService) provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)); if (svc != null) { DictionaryEditorWindow ipfrm = new DictionaryEditorWindow((Dictionary<string, object>)value); ipfrm.ShowDialog(); } } return base.EditValue(context, provider, value); }
public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { if ((context != null) && (provider != null)) { System.Windows.Forms.Design.IWindowsFormsEditorService svc = (System.Windows.Forms.Design.IWindowsFormsEditorService) provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)); if (svc != null) { DictionaryEditorWindow ipfrm = new DictionaryEditorWindow((Dictionary <string, object>)value); ipfrm.ShowDialog(); } } return(base.EditValue(context, provider, value)); }