Beispiel #1
0
 public void PressButton()
 {
     Console.WriteLine("Pressing the remote control button...");
     if (door.IsOpen)
     {
         door.Close();
     }
     else
     {
         door.Open();
     }
 }
Beispiel #2
0
 public void Recognize(String bark)
 {
     Console.WriteLine($"\tBarkRecognizer: heard a \"{bark}\"");
     door.Open();
 }