public void RegisterSwitch(IStopSwitch stopSwitch) { _stopSwitches.Add(stopSwitch); stopSwitch.OnPressed += OnActivatedSwitch; stopSwitch.Number = NumberOfSwitches; Console.WriteLine("Registered Switch Number: {0}", stopSwitch.Number); }