private GroupingLabelDTO mapFrom(string fieldValue) { return(new GroupingLabelDTO { Value = fieldValue, //+1 to have a user friendly sequence Sequence = (_mapping.Count + 1).ConvertedTo <uint>(), Color = _colorGenerator.NextColor(), Symbol = _symbolGenerator.NextSymbol(), }); }
private FixedLimitGroupingDTO newDTO(double?minimumInDisplayUnit = null, double?maximumInDisplayUnit = null, bool canAdd = true, bool canDelete = true, bool maximumEditable = true) { return(new FixedLimitGroupingDTO { CanAdd = canAdd, CanDelete = canDelete, Maximum = maximumInDisplayUnit, Minimum = minimumInDisplayUnit, MaximumEditable = maximumEditable, Color = _colorGenerator.NextColor(), Symbol = _symbolGenerator.NextSymbol(), }); }