Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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();
        }