private IOutputCell <T> GetMeasureCell(IEnumerable <T> measures, OutputCellType cellType)
        {
            var descriptors = new List <KeyValuePair <string, string> >();

            foreach (var item in measures)
            {
                var dataItem = _resolver.GetDataItemInfo(item);
                var value    = new KeyValuePair <string, string>("Measure", dataItem.Name);

                descriptors.Add(value);
            }

            return(new OutputCell <T>(new KeyValuePair <T, T>[] { }, descriptors.ToArray(), cellType));
        }
Ejemplo n.º 2
0
        public OutputCell(KeyValuePair <T, T>[] coords, KeyValuePair <string, string>[] descriptors, OutputCellType cellType)
        {
            CellType = cellType;

            if (CellType == OutputCellType.COLUMN_LABEL)
            {
                XCoords = coords;
                Column  = descriptors;
            }

            if (CellType == OutputCellType.ROW_LABEL)
            {
                YCoords = coords;
                Row     = descriptors;
            }
        }