private void txtConstraintData_Validated(object sender, EventArgs e) { IStringConvertibleValue value = (IStringConvertibleValue)Activator.CreateInstance(Content.ConstrainedValue.GetDataType(cmbConstraintColumn.SelectedItem.ToString()).First()); value.SetValue(txtConstraintData.Text); Content.ConstraintData = value; }
private void tbFilterData_Validated(object sender, EventArgs e) { IStringConvertibleValue value = CreateStringConvertibleValue(cbAttr.SelectedIndex); value.SetValue(tbFilterData.Text); Content.ConstraintData = value; }