コード例 #1
0
ファイル: MotorController.cs プロジェクト: manf88/ACHIM
        public void RegisterSwitch(IStopSwitch stopSwitch)
        {
            _stopSwitches.Add(stopSwitch);
            stopSwitch.OnPressed += OnActivatedSwitch;

            stopSwitch.Number = NumberOfSwitches;

            Console.WriteLine("Registered Switch Number: {0}", stopSwitch.Number);
        }
コード例 #2
0
        public void RegisterSwitch(IStopSwitch stopSwitch)
        {
            _stopSwitches.Add(stopSwitch);
            stopSwitch.OnPressed += OnActivatedSwitch;

            stopSwitch.Number = NumberOfSwitches;

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