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.CustomViewCollectionForm F = new Widgetsphere.Generator.Forms.CustomViewCollectionForm((CustomViewCollection)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.CustomViewCollectionForm F = new Widgetsphere.Generator.Forms.CustomViewCollectionForm((CustomViewCollection)value); if (edSvc.ShowDialog(F) == System.Windows.Forms.DialogResult.OK) { context.OnComponentChanged(); } } catch (Exception ex) { } return(value); }