public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value) { EditConnectionString dlg = new EditConnectionString(); dlg.ConnectionString = (string)value; if(dlg.ShowDialog() == DialogResult.OK) { return dlg.ConnectionString; } else return value; }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value) { EditConnectionString dlg = new EditConnectionString(); dlg.ConnectionString = (string)value; if (dlg.ShowDialog() == DialogResult.OK) { return(dlg.ConnectionString); } else { return(value); } }