Exemplo n.º 1
0
        static Boolean CheckAdditionalValue(StringBuilder sb, IEntity entity, String name, String cname)
        {
            if (!EntityAddition.TryGetValue(entity as EntityBase, name, out var addvalue, out var sign)) return false;

            if (sign)
                sb.AppendFormat("{0}+{1}", cname, addvalue);
            else
                sb.AppendFormat("{0}-{1}", cname, addvalue);

            return true;
        }
Exemplo n.º 2
0
        static Boolean CheckAdditionalValue(StringBuilder sb, IEntity entity, String name, String cname)
        {
            Object  addvalue = null;
            Boolean sign;

            if (!EntityAddition.TryGetValue(entity as EntityBase, name, out addvalue, out sign))
            {
                return(false);
            }

            if (sign)
            {
                sb.AppendFormat("{0}+{1}", cname, addvalue);
            }
            else
            {
                sb.AppendFormat("{0}-{1}", cname, addvalue);
            }

            return(true);
        }