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; } }
public CrossDataRowGroupColumnValue(CrossDataColumn column, CrossDataGroupColumnValue groupValue, object value) : base(column, value) { GroupValue = groupValue; }
public CrossDataRowValue(CrossDataColumn column, object value) { Column = column; Value = value; }
public CrossDataRowValue GetValue(CrossDataColumn column) { return(_values.First(v => v.Column == column)); }
public CrossDataRowValue Find(CrossDataColumn column, CrossDataGroupColumnValue groupValue) { return(_values.OfType <CrossDataRowGroupColumnValue>().FirstOrDefault(v => v.Column == column && v.GroupValue == groupValue)); }
public CrossDataRowValue Find(CrossDataColumn column) { return(_values.FirstOrDefault(v => !(v is CrossDataRowGroupColumnValue) && v.Column == column)); }
public void AddColumn(CrossDataColumn column) { _columns.Add(column); }