public Estacionamiento(delPrint de, delPrint1 ds, delPrint2 desp)
 {
     delEntrada      = de;
     delEspera       = desp;
     estacionamiento = new List <Auto>();
     espera          = new List <Auto>();
     r               = new Random();
     tiempo          = new Timer();
     tiempo.Interval = r.Next(500, 5001);
     tiempo.Elapsed += Entrar;
     tiempo.Elapsed += Salir;
     tiempo.Start();
 }
 public Mundo(delPrint db, delPrint2 dd, delPrint3 ds)
 {
     delBorn         = db;
     delDead         = dd;
     delSick         = ds;
     poblacion       = new List <Persona>();
     tiempo          = new Timer();
     tiempo.Interval = 500;
     tiempo.Elapsed += Born;
     tiempo.Elapsed += Dead;
     tiempo.Elapsed += Sick;
     tiempo.Start();
 }
Example #3
0
 private void Print(delPrint P, string s)
 {
     P(s);
 }