Exemplo n.º 1
0
        private g Paint_Points()
        {
            g g1 = new g();

            if (_parent.Points_List_Private.Count > 0)
            {
                MyPoint p  = new MyPoint(0, MyFunctions.Calculate_Y_Coordinate(_parent, _parent.Points_List_Private.Where(x => x.IsShown).First().Percentage));
                MyPoint p2 = new MyPoint(0, 0);


                int counter = 0;
                foreach (MyChartPoint item in _parent.Points_List_Private.Where(x => x.IsShown))
                {
                    p2 = new MyPoint(counter * _parent.ChartSettings.StackWidth, MyFunctions.Calculate_Y_Coordinate(_parent, item.Percentage));


                    line l = new line
                    {
                        x1           = p.X,
                        y1           = p.Y,
                        x2           = p2.X,
                        y2           = p2.Y,
                        stroke       = _parent.ChartSettings.LineColor,
                        stroke_width = _parent.ChartSettings.LineWidth,
                    };
                    g1.Children.Add(l);

                    p.X = p2.X;
                    p.Y = p2.Y;

                    counter++;
                }
            }


            return(g1);
        }
Exemplo n.º 2
0
        private g Paint_Points()
        {
            g g1 = new g();



            if (_parent.Points_List_Private.Count > 0)
            {
                int counter = 0;
                foreach (MyChartPoint item in _parent.Points_List_Private.Where(x => x.IsShown))
                {
                    g1.Children.Add(Add_Visual_Point(new MyPoint(counter * _parent.ChartSettings.StackWidth, MyFunctions.Calculate_Y_Coordinate(_parent, item.Percentage)), item.IsProcessRunning));
                    counter++;
                }
            }

            return(g1);
        }