C# Class SpeakFriend.Utilities.ConditionBoolean

Inheritance: Condition
Show file Open project: teamaton/speak-lib Class Usage Examples

Public Methods

Method Description
AddToCriteria ( ICriteria criteria ) : void
AsNullable ( ) : ConditionBoolean
ConditionBoolean ( ConditionContainer conditions, string propertyName ) : System
GetCriterion ( ) : ICriterion
IsActive ( ) : bool

Checks whether this condition is set and contained in the ConditionList.

IsFalse ( ) : bool
IsTrue ( ) : bool
Reset ( ) : void
Set ( bool value ) : ConditionBoolean
SetFalse ( ) : void

Sets the condition to false (and leaves it ACTIVE!).

SetNull ( ) : void

Sets the condition to false (and leaves it ACTIVE!).

SetTrue ( ) : void

Sets the condition to true

SetTrueOrInactive ( bool value ) : void

Sets the condition to [true AND active] or [false AND inactive].

Method Details

AddToCriteria() public method

public AddToCriteria ( ICriteria criteria ) : void
criteria ICriteria
return void

AsNullable() public method

public AsNullable ( ) : ConditionBoolean
return ConditionBoolean

ConditionBoolean() public method

public ConditionBoolean ( ConditionContainer conditions, string propertyName ) : System
conditions ConditionContainer
propertyName string
return System

GetCriterion() public method

public GetCriterion ( ) : ICriterion
return ICriterion

IsActive() public method

Checks whether this condition is set and contained in the ConditionList.
public IsActive ( ) : bool
return bool

IsFalse() public method

public IsFalse ( ) : bool
return bool

IsTrue() public method

public IsTrue ( ) : bool
return bool

Reset() public method

public Reset ( ) : void
return void

Set() public method

public Set ( bool value ) : ConditionBoolean
value bool
return ConditionBoolean

SetFalse() public method

Sets the condition to false (and leaves it ACTIVE!).
public SetFalse ( ) : void
return void

SetNull() public method

Sets the condition to false (and leaves it ACTIVE!).
public SetNull ( ) : void
return void

SetTrue() public method

Sets the condition to true
public SetTrue ( ) : void
return void

SetTrueOrInactive() public method

Sets the condition to [true AND active] or [false AND inactive].
public SetTrueOrInactive ( bool value ) : void
value bool
return void