Exemplo n.º 1
0
        public void AddPassenger()
        {
            Random     rnd      = new Random();
            int        stations = rnd.Next(1, 2);
            IPassenger NewMan   = new SimpleMan(stations);
            int        index    = rnd.Next(0, 3);

            BusStops[index].Passengers.Add(NewMan);
        }
Exemplo n.º 2
0
        public void AddPassenger()
        {
            Random    rnd       = new Random();
            SimpleMan simpleMan = new SimpleMan(rnd.Next(1, 2));

            BusEvent         += simpleMan.OnBus;
            simpleMan.BusStop = this;
            Passengers.Add(simpleMan);
        }