/// <summary> /// Sets the value. /// </summary> /// <param name="control">The control.</param> /// <param name="configurationValues">The configuration values.</param> /// <param name="value">The value.</param> public override void SetEditValue(Control control, Dictionary <string, ConfigurationValue> configurationValues, string value) { var tvf = control as ValueFilter; if (control != null) { tvf.Filter = ( CompoundFilterExpression )FilterExpression.FromJsonOrNull(value); } }
/// <summary> /// Gets the filter object that can be used to evaluate an object against the filter. /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="value">The attribute value.</param> /// <returns>A CompoundFilter object that can be used to evaluate the truth of the filter.</returns> public static FilterExpression GetFilterExpression(Dictionary <string, ConfigurationValue> configurationValues, string value) { return(FilterExpression.FromJsonOrNull(value)); }