public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { HighLightingEditor dlg = new HighLightingEditor(); dlg.Records = (HighLightingRecord[])value; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) return dlg.Records; return value; }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { HighLightingEditor dlg = new HighLightingEditor(); dlg.Records = (HighLightingRecord[])value; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return(dlg.Records); } return(value); }