Пример #1
0
 protected void UpdateSignal(bool?input1, bool?input2, bool?output)
 {
     SignalChanged?.Invoke(input1, input2, output);
 }
 internal virtual void OnSignalChanged(string eventDetails, string train, RailwayCrossingLogger railwayCrossingLogger)
 {
     Console.WriteLine("{0}({1}-{2})", eventDetails, this.Name, train);
     SignalChanged?.Invoke(this, eventDetails, railwayCrossingLogger);
 }
Пример #3
0
 public void ResetSignal()
 {
     SignalChanged?.Invoke(null, null, null);
 }