Example #1
0
 public void PressButton()
 {
     Console.WriteLine("Pressing the remote control Button ");
     if (_dogDoor.isOpen())
     {
         _dogDoor.Close();
     }
     _dogDoor.Open();
 }
Example #2
0
 public void Recognizer(string bark)
 {
     Console.WriteLine("BarkRecognizer: Heard a '" + bark + "'");
     _dogDoor.Open();
 }