示例#1
0
        public void AddValue(CrossDataColumn column, CrossDataGroupColumnValue columnValue, object value)
        {
            var data = Find(column, columnValue);

            if (data == null)
            {
                _values.Add(new CrossDataRowGroupColumnValue(column, columnValue, value));
            }
            else
            {
                data.Value = value;
            }
        }
示例#2
0
 public CrossDataRowGroupColumnValue(CrossDataColumn column, CrossDataGroupColumnValue groupValue, object value) : base(column, value)
 {
     GroupValue = groupValue;
 }
示例#3
0
 public CrossDataRowValue(CrossDataColumn column, object value)
 {
     Column = column;
     Value  = value;
 }
示例#4
0
 public CrossDataRowValue GetValue(CrossDataColumn column)
 {
     return(_values.First(v => v.Column == column));
 }
示例#5
0
 public CrossDataRowValue Find(CrossDataColumn column, CrossDataGroupColumnValue groupValue)
 {
     return(_values.OfType <CrossDataRowGroupColumnValue>().FirstOrDefault(v => v.Column == column && v.GroupValue == groupValue));
 }
示例#6
0
 public CrossDataRowValue Find(CrossDataColumn column)
 {
     return(_values.FirstOrDefault(v => !(v is CrossDataRowGroupColumnValue) && v.Column == column));
 }
示例#7
0
 public void AddColumn(CrossDataColumn column)
 {
     _columns.Add(column);
 }