Ejemplo n.º 1
0
 public RoadModel(CrashService cs)
 {
     Cars               = new List <Car>();
     Ppl                = new List <Man>();
     DrawUnit           = new Drawer(Cars, Ppl, cs);
     LightChangedEvent += DrawUnit.ChangeLight;
     UpdThread          = new Thread(new ThreadStart(Update));
     AddThread          = new Thread(new ThreadStart(Additions));
     UpdThread.Start();
     AddThread.Start();
 }
Ejemplo n.º 2
0
 void DrawCrashService(Graphics g, CrashService cs)
 {
     g.DrawImage(Properties.GraphicsRes.CrashServiceImg, new Rectangle(cs.X, 70, 180, 90), new Rectangle(0, 0, 1667, 833), GraphicsUnit.Pixel);
 }
Ejemplo n.º 3
0
 public Drawer(List <Car> c, List <Man> p, CrashService cs)
 {
     Cars    = c;
     Ppl     = p;
     LocalCS = cs;
 }