public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Get the help index keyword collection MSHelpKeywordCollection items = value as MSHelpKeywordCollection; if(context == null || provider == null || context.Instance == null || items == null) return base.EditValue(context, provider, value); using(MSHelpKeywordEditorDlg dlg = new MSHelpKeywordEditorDlg(items)) { dlg.ShowDialog(); } return value; }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Get the help index keyword collection MSHelpKeywordCollection items = value as MSHelpKeywordCollection; if (context == null || provider == null || context.Instance == null || items == null) { return(base.EditValue(context, provider, value)); } using (MSHelpKeywordEditorDlg dlg = new MSHelpKeywordEditorDlg(items)) { dlg.ShowDialog(); } return(value); }