Ejemplo n.º 1
0
 public void PlayTV()
 {
     Console.WriteLine(_currentVideoSource != null
         ? _currentVideoSource.PlayVideo()
         : "Please Select a Video Source to Play"
                       );
 }
Ejemplo n.º 2
0
 public void PlayTV()
 {
     if (currentVideoSource != null)
     {
         Console.WriteLine(currentVideoSource.PlayVideo());
     }
     else
     {
         Console.WriteLine("Please select a Video Source to play");
     }
 }