public static ElevatorsManager GetInstance() { if (_manager == null) { _manager = new ElevatorsManager(); } return(_manager); }
public ElevatorController(ElevatorsManager manager) { _manager = manager; _requests = new List <Request>(); _thread = new Thread(Run); Elev = new Elevator(); _lock = new object(); }
public ElevatorController(ElevatorsManager manager, int id) : this(manager) { Identifier = id; }
public FloorButton(ElevatorsManager manager, int id) { _manager = manager; Identifier = id; }