Habanero.Faces.Win.FilterControlWin.AddBooleanFilterComboBox C# (CSharp) Method

AddBooleanFilterComboBox() public method

Adds a ComboBox filter that displays only rows whose boolean value matches the true/false or null value in the ComboBox. The column (propertyName) of data must have "true" or "false" as its values (boolean database fields are usually converted to true/false string values by the Habanero object manager).
public AddBooleanFilterComboBox ( string labelText, string propertyName, bool defaultValue ) : IComboBox
labelText string The label to appear before the control
propertyName string The business object property on which to filter
defaultValue bool Whether the CheckBox is checked
return IComboBox
        public IComboBox AddBooleanFilterComboBox(string labelText, string propertyName, bool? defaultValue)
        {
            ICustomFilter filter =
                _filterControlManager.AddBooleanFilterComboBox(labelText, propertyName, defaultValue);
            filter.ValueChanged += (sender, e) => { if (this.FilterMode == FilterModes.Filter) FireFilterEvent(); };
            return (IComboBox)filter.Control;
        }