internal Series(SeriesList owner, string name, string title, Color baseColor, float valueData, Series parent) { this.valueData = valueData; this.name = name; this.parent = parent; this.level = this.parent == null ? 0 : parent.Level + 1; this.BaseColor = baseColor; this.path = new GraphicsPath(); this.owner = owner; this.Title = title; }
public PieGraph() { SetStyle( ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.UserPaint | ControlStyles.SupportsTransparentBackColor, true); UpdateStyles(); this.series = new SeriesList(this); this.interval = 3; this.needInitData = true; this.needDrawSeries = new List <Series>(); this.popup = new CornerBowlPopup(); }