Пример #1
0
        public void HandleDoorEvent(object sender, EventArgDoorOpen e)
        {
            DoorState = e.DoorOpen;

            if (DoorState)
            {
                _state = LadeskabState.DoorOpen; // Tror den skal sættes her. Det giver ihvertfald mest mening for mig
                _display.PrintConnectDevice();
            }
            else
            {
                _state = LadeskabState.Available;
                _display.PrintScanRfid();
            }
        }
Пример #2
0
 protected virtual void OnDoorClosed(EventArgDoorOpen e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }