public void AddTrafficLightGroup(int id) { TrafficLightGroup tlg = new TrafficLightGroup(); tlg.GroupId = id; CLogic.TrafficLights.Add(tlg); }
public void AddTrafficLight(int idGroup, int idStatus, int x, int y, float angle) { TrafficLightGroup tlg = CLogic.GetTrafficLightGroupById(idGroup); TrafficLight tl = new TrafficLight(idStatus); tl.Angle = angle; tl.Position = new PointF(x, y); tlg.AddTrafficLight(tl); }