/// <summary> /// Adds a binary logical operation to the formula. /// </summary> /// <param name="logicalOperator">The logical operator.</param> /// <param name="operation">The comparision operation.</param> public void AddBinaryLogicalOperation(WFSBinaryLogicalOperator logicalOperator, ComparisionOperation operation) { switch (logicalOperator) { case WFSBinaryLogicalOperator.And: Formula = new BinaryLogicalOperation(Formula, operation, WFSBinaryLogicalOperator.And); break; case WFSBinaryLogicalOperator.Or: Formula = new BinaryLogicalOperation(Formula, operation, WFSBinaryLogicalOperator.Or); break; } }
/// <summary> /// Initializes a new instance of the <see cref="BinaryLogicalOperation"/> class. /// </summary> /// <param name="leftOperand">The left operand.</param> /// <param name="rightOperand">The right operand.</param> /// <param name="operationType">The operation type.</param> public BinaryLogicalOperation(FormulaOperation leftOperand, FormulaOperation rightOperand, WFSBinaryLogicalOperator operationType) { LeftOperand = leftOperand; RightOperand = rightOperand; OperationType = operationType; }