private static string GetStateName(VideoWindow window, bool isPlaying)
 {
     if (isPlaying)
     {
         return window.PlayingVideo.Name;
     }
     else
     {
         return window.Idle.Name;
     }
 }
 private static string GetStateName(VideoWindow window, bool isPlaying)
 {
     if (isPlaying)
     {
         return(window.PlayingVideo.Name);
     }
     else
     {
         return(window.Idle.Name);
     }
 }