Ejemplo n.º 1
0
        public void DrawRoads()
        {
            Roads    = new Road[2];
            Roads[0] = new Road(this, HLane, 'H');
            Roads[1] = new Road(this, VLane, 'V');

            //Create the Intersection Block in the Middle
            block           = new IntersectionBlock(this);
            block.Location  = new Point(Roads[1].Location.X, Roads[0].Location.Y);
            block.Width     = Roads[1].Width;
            block.Height    = Roads[0].Height;
            block.BackColor = Color.Black;
            block.SendToBack();
        }
Ejemplo n.º 2
0
        public void DrawRoads()
        {
            Roads = new Road[2];
            Roads[0] = new Road(this, HLane, 'H');
            Roads[1] = new Road(this, VLane, 'V');

            //Create the Intersection Block in the Middle
            block = new IntersectionBlock(this);
            block.Location = new Point(Roads[1].Location.X, Roads[0].Location.Y);
            block.Width = Roads[1].Width;
            block.Height = Roads[0].Height;
            block.BackColor = Color.Black;
            block.SendToBack();
        }