public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { try { System.Windows.Forms.Design.IWindowsFormsEditorService edSvc = (System.Windows.Forms.Design.IWindowsFormsEditorService)provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)); Widgetsphere.Generator.Forms.CustomRetrieveRuleReferenceCollectionForm F = new Widgetsphere.Generator.Forms.CustomRetrieveRuleReferenceCollectionForm((ReferenceCollection)value); if(edSvc.ShowDialog(F) == System.Windows.Forms.DialogResult.OK) { context.OnComponentChanged(); } } catch(Exception ex) { } return value; }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { try { System.Windows.Forms.Design.IWindowsFormsEditorService edSvc = (System.Windows.Forms.Design.IWindowsFormsEditorService)provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)); Widgetsphere.Generator.Forms.CustomRetrieveRuleReferenceCollectionForm F = new Widgetsphere.Generator.Forms.CustomRetrieveRuleReferenceCollectionForm((ReferenceCollection)value); if (edSvc.ShowDialog(F) == System.Windows.Forms.DialogResult.OK) { context.OnComponentChanged(); } } catch (Exception ex) { } return(value); }