public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Get the plug-in configuration dictionary PlugInConfigurationDictionary items = value as PlugInConfigurationDictionary; if(context == null || provider == null || context.Instance == null || items == null) return base.EditValue(context, provider, value); using(PlugInConfigurationEditorDlg dlg = new PlugInConfigurationEditorDlg(items)) { dlg.ShowDialog(); } return value; }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Get the plug-in configuration dictionary PlugInConfigurationDictionary items = value as PlugInConfigurationDictionary; if (context == null || provider == null || context.Instance == null || items == null) { return(base.EditValue(context, provider, value)); } using (PlugInConfigurationEditorDlg dlg = new PlugInConfigurationEditorDlg(items)) { dlg.ShowDialog(); } return(value); }