Adf.Web.Binding.CheckBoxPersister.Persist C# (CSharp) Method

Persist() public method

Persists the value of the 'Checked' property of the specified System.Web.UI.WebControls.CheckBox to a specified property of a specified object.
public Persist ( object bindableObject, PropertyInfo pi, object control ) : void
bindableObject object The object where to persist.
pi System.Reflection.PropertyInfo The property of the object where to persist.
control object The control /// of which the 'Checked' property is to persist.
return void
        public virtual void Persist(object bindableObject, PropertyInfo pi, object control)
        {
            CheckBox c = control as CheckBox;

            if (c != null)
            {
                if (c.Enabled) PropertyHelper.SetValue(bindableObject, pi, (bool?)c.Checked);
            }
        }
CheckBoxPersister