using System; using CPF.Drawing; using CPF.ReoGrid.Drawing; using CPF.ReoGrid.Graphics; namespace CPF.ReoGrid.Chart { internal class DataSerialStyle : IDataSerialStyle, IDrawingLineObjectStyle, IDrawingObjectStyle { internal Chart Chart { get; private set; } public DataSerialStyle(Chart chart) { this.Chart = chart; } public Color FillColor { get { return this.fillColor; } set { bool flag = this.fillColor != value || !this.fillColor.Equals(value); if (flag) { this.fillColor = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } public Color LineColor { get { return this.lineColor; } set { bool flag = this.lineColor != value; if (flag) { this.lineColor = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } public float LineWidth { get { return this.lineWeight; } set { bool flag = this.lineWeight != value; if (flag) { this.lineWeight = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } public LineStyles LineStyle { get { return this.lineStyle; } set { bool flag = this.lineStyle != value; if (flag) { this.lineStyle = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } public LineCapStyles StartCap { get { return this.startCap; } set { bool flag = this.startCap != value; if (flag) { this.startCap = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } public LineCapStyles EndCap { get { return this.endCap; } set { bool flag = this.endCap != value; if (flag) { this.endCap = value; bool flag2 = this.Chart != null; if (flag2) { this.Chart.Invalidate(); } } } } private Color fillColor; private Color lineColor; private float lineWeight = 2f; private LineStyles lineStyle = LineStyles.Solid; private LineCapStyles startCap = LineCapStyles.None; public LineCapStyles endCap = LineCapStyles.None; } }