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();
            }
        }
Beispiel #2
0
 protected virtual void OnDoorClosed(EventArgDoorOpen e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }