/// <summary> /// Diese Methode informiert alle registrierten Eventhandler über den Zustandswechsel /// (ein-/ausgeschaltet) der LED. /// </summary> public void OnLedStateChanged(LedEventArgs e) => LedStateChanged?.Invoke(this, e);
internal void NodeSetLed(SimulatedNode n, Color c) { n.LedColor = c; n.PastEvents.Append(new SimulationEvent(CurrentTime, n, EventType.LedChange, c)); LedStateChanged?.Invoke(); }
private void RaiseLedStateChangedEvent(bool state) { LedStateChanged?.Invoke(this, state); }