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); }
public void ResetSignal() { SignalChanged?.Invoke(null, null, null); }