Ejemplo n.º 1
0
        public override string ToString()
        {
            if (Field == "MatchAnything")
            {
                return("Match Anything");
            }
            if (!IsGroup)
            {
                if (Compare != null)
                {
                    return(Compare.ToString(this));
                }
            }
            switch (ComparisonType)
            {
            case CompareType.AllTrue:
                return("Match ALL of the conditions below");

            case CompareType.AnyTrue:
                return("Match ANY of the conditions below");

            case CompareType.AllFalse:
                return("Match NONE of the conditions below");
            }
            return("null");
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            string ret = "null";

            if (ConditionName == "MatchAnything")
            {
                ret = "Match Anything";
            }
            switch (ComparisonType)
            {
            case CompareType.AllTrue:
                ret = "Match ALL of the conditions below";
                break;

            case CompareType.AnyTrue:
                ret = "Match ANY of the conditions below";
                break;

            case CompareType.AllFalse:
                ret = "Match NONE of the conditions below";
                break;

            case CompareType.AnyFalse:
                ret = "Match NOT ALL of the conditions below";
                break;

            default:
                if (Compare2 != null)
                {
                    ret = Compare2.ToString(this);
                }
                else if (ComparisonType == CompareType.Equal && FieldInfo.Type == FieldType.NumberLG)
                {
                    SetComparisonType(CompareType.LessEqual);
                    if (Compare2 != null)
                    {
                        ret = Compare2.ToString(this);
                    }
                }
                break;
            }
            return(ret);
        }