private static string OperatorToString(aim4_dotnet.ComparisonOperatorIdentifier operatorIdentifier, bool capFirst)
        {
            switch (operatorIdentifier)
            {
            case aim4_dotnet.ComparisonOperatorIdentifier.Equal:
                return(capFirst ? "Equal to" : "equal to");

            case aim4_dotnet.ComparisonOperatorIdentifier.NotEqual:
                return(capFirst ? "Not equal to" : "not equal to");

            case aim4_dotnet.ComparisonOperatorIdentifier.LessThan:
                return(capFirst ? "Less than" : "less than");

            case aim4_dotnet.ComparisonOperatorIdentifier.LessThanEqual:
                return(capFirst ? "Less than or equal" : "less than or equal");

            case aim4_dotnet.ComparisonOperatorIdentifier.GreaterThan:
                return(capFirst ? "Greater than" : "greater than");

            case aim4_dotnet.ComparisonOperatorIdentifier.GreaterThanEqual:
                return(capFirst ? "Greater than or equal" : "greater than or equal");

            case aim4_dotnet.ComparisonOperatorIdentifier.None:
                return(capFirst ? "None" : "none");

            case aim4_dotnet.ComparisonOperatorIdentifier.InvalidComparisonOperator:
                return(capFirst ? "Invalid" : "invalid");
            }

            return(string.Empty);
        }
        private static string CombineOperatorAndValue(aim4_dotnet.ComparisonOperatorIdentifier operatorIdentifier, string aValue, bool capFirst)
        {
            aValue = aValue.Trim();
            if (operatorIdentifier == aim4_dotnet.ComparisonOperatorIdentifier.None ||
                operatorIdentifier == aim4_dotnet.ComparisonOperatorIdentifier.InvalidComparisonOperator)
            {
                return(string.IsNullOrEmpty(aValue) ? "" : aValue);
            }

            if (string.IsNullOrEmpty(aValue))
            {
                return(OperatorToString(operatorIdentifier, capFirst));
            }

            return(string.Format("{0} {1}", OperatorToString(operatorIdentifier, capFirst), aValue));
        }