Exemplo n.º 1
0
        internal void DrawObjects()
        {
            ZChart cChart     = __cParameter.Chart;
            AxisX  cAxisX     = cChart.AxisX;
            int    iEndNumber = cAxisX.BarNumber + cAxisX.BarCount - 1;

            HashSet <DrawObject> cObjects = __cDrawContainer.GetDrawObjects(cAxisX.BarNumber, iEndNumber);

            foreach (DrawObject cObject in cObjects)
            {
                if (cObject.Exist)
                {
                    IDrawable cDrawable = GetCustomAction(cObject.Name) as IDrawable;
                    if (cDrawable != null)
                    {
                        if (cObject.LayerIndex < cChart.Layers.Count)
                        {
                            cDrawable.DrawObject(cChart.Layers[cObject.LayerIndex], cObject);
                        }
                    }
                }
            }
        }