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(); }
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); }
public Drawer(List <Car> c, List <Man> p, CrashService cs) { Cars = c; Ppl = p; LocalCS = cs; }