Ejemplo n.º 1
0
        public void AddValue()
        {
            var aggregateOperation = comboAggregateOp.SelectedItem as AggregateOperation;

            if (aggregateOperation == null)
            {
                return;
            }
            var newColumns = GetSelectedProperties()
                             .Select(pd => new PivotSpec.AggregateColumn(ColumnId.GetColumnId(pd), aggregateOperation));

            PivotSpec = PivotSpec.ChangeValues(PivotSpec.Values.Concat(newColumns));
        }
Ejemplo n.º 2
0
 private void ValuesListOnColumnsMoved(IList <int> ints)
 {
     PivotSpec = PivotSpec.ChangeValues(ints.Select(i => PivotSpec.Values[i]));
 }