コード例 #1
0
        private void AddRandomArrows()
        {
            double x0, y0, x1, y1;

            arrowSeries1.Clear();
            for (int t = 1; t < 40; t++)
            {
                x0 = r.Next(1000);
                y0 = r.Next(1000);
                x1 = r.Next(300) - 150;
                if (x1 < 50)
                {
                    x1 = 50;
                }
                x1 += x0;
                y1  = r.Next(300) - 150;
                if (y1 < 50)
                {
                    y1 = 50;
                }
                y1 += y0;
                arrowSeries1.Add(x0, y0, x1, y1);
            }
        }