示例#1
0
文件: Led.cs 项目: snapthecoder/CSA
 /// <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();
 }
示例#3
0
 private void RaiseLedStateChangedEvent(bool state)
 {
     LedStateChanged?.Invoke(this, state);
 }