Пример #1
0
        public object Calculate(object RowName, object ColumnName)
        {
            RCAddress address = new RCAddress(RowName, ColumnName);
            if (hValues.ContainsKey(address))
            {

                if (this.aggregationHandler == null)
                {
                    this.aggregationHandler = AggregateFunction.Sum;
                }

                ArrayList set = (ArrayList)hValues[address];

                return this.aggregationHandler(set);
            }

            return DefaultEmptyValue;
        }
Пример #2
0
        public void AddValue(object RowName, object ColumnName, object Value)
        {
            if (Value is DBNull)
                return;

            ArrayList v;
            RCAddress address = new RCAddress(RowName, ColumnName);

            if (hValues.ContainsKey(address))
            {
                v = (ArrayList)hValues[address];
            }
            else
            {
                v = new ArrayList();
                hValues[address] = v;
            }

            v.Add(Value);
        }