public ReFilter Copy() { ReFilter thiscopy = new ReFilter(); foreach (ReElement value in this) { thiscopy.Add(value); } thiscopy._TotalOther = this._TotalOther; thiscopy._OtherName = this._OtherName; return(thiscopy); }
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); }