public Elevator() { this.CurrentIndex = 0; CallOriginFloor = new ConcurrentQueue <int>(); Floors = new List <Floor>(); this.people = new List <Personel>(); cl = new Shared.Caller(Call); this.State = ELEVATOR_STATE.WAITING_FOR_CALL; this.thread = new Thread(new ThreadStart(LifeCycle)); this.thread.Start(); }
public Personel(ACCESS_LEVEL level, Caller call) : this(level) { this.AccessLevel = level; this.callMethod = call; }