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

            BusStops[index].consignment.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;
            consignment.Add(simpleMan);
        }