Ejemplo n.º 1
0
        public void RegisterSwitch(IStopSwitch stopSwitch)
        {
            _stopSwitches.Add(stopSwitch);
            stopSwitch.OnPressed += OnActivatedSwitch;

            stopSwitch.Number = NumberOfSwitches;

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

            stopSwitch.Number = NumberOfSwitches;

            Console.WriteLine("Registered Switch Number: {0}", stopSwitch.Number);
        }