Пример #1
0
        public void ReceiveEvent(IDomain domain, object[] data)
        {
            Random r = new Random();
            double x, y;
            int    nSqs = r.Next(100, 10000);

            for (int i = 0; i < nSqs; i++)
            {
                x = r.Next(0, 640);
                y = r.Next(0, 480);
                int sz = r.Next(0, 10);
                bridge_.DrawSquare(x, y, sz);
            }
        }
Пример #2
0
 public void DrawSquare(double x, double y, int size)
 {
     DrawingBridge.DrawSquare(cside_, x, y, size);
 }