示例#1
0
 public void ShowTvGuide()
 {
     if (currentVideoSource != null)
     {
         Console.WriteLine(currentVideoSource.GetTvGuide());
     }
     else
     {
         Console.WriteLine("Please select a Video Source to get TV guide from");
     }
 }
示例#2
0
 public void ShowTvGuide()
 {
     Console.WriteLine(_currentVideoSource != null
         ? _currentVideoSource.GetTvGuide()
         : "Please select a Video Source");
 }