private void SetDraggingField(ReportField field)
        {
            if (_draggingField != null)
            {
                Items.Remove(_draggingField);
            }

            if (_draggingField == field)
            {
                return;
            }

            _draggingField        = field;
            _draggingOldTransform = _draggingField.Transform;

            ForceFieldTransform(_draggingField);
        }
Пример #2
0
        private string GetTransformCode(ReportFieldTransform transform)
        {
            switch (transform)
            {
            case ReportFieldTransform.Sum:
                return("sum");

            case ReportFieldTransform.Count:
                return("count");

            case ReportFieldTransform.Average:
                return("average");

            case ReportFieldTransform.Max:
                return("max");

            case ReportFieldTransform.Min:
                return("min");

            case ReportFieldTransform.Product:
                return("product");

            case ReportFieldTransform.CountNumbers:
                return("count-numbers");

            case ReportFieldTransform.StdDev:
                return("stddev");

            case ReportFieldTransform.StdDevp:
                return("stddevp");

            case ReportFieldTransform.Var:
                return("var");

            case ReportFieldTransform.Varp:
                return("varp");

            default:
                throw new ArgumentOutOfRangeException(nameof(transform), transform, null);
            }
        }