Exemplo n.º 1
0
        public ValueColorCollection Copy()
        {
            ValueColorCollection valueColors = new ValueColorCollection();

            valueColors.series = this.series;

            foreach (ValueColor valueColor in this)
            {
                valueColors.Add(valueColor.Copy());
            }
            return(valueColors);
        }
Exemplo n.º 2
0
        public ValueColorCollection CreateValuesColor()
        {
            ValueColorCollection valusColor = new ValueColorCollection();

            valusColor.series = this.series;

            DataTable dt = GetDataSource();

            if (dt == null || this.series == null)
            {
                return(valusColor);
            }

            ArrayList fields = ReFilter.GetFields(dt, series);

            foreach (string field in fields)
            {
                valusColor.Add(new ValueColor(field, Color.Empty));
            }
            return(valusColor);
        }