private void cycleChannel(int direction) { List <Channel> overlayChannels = channelList.Channels.ToList(); if (overlayChannels.Count < 2) { return; } int currentIndex = overlayChannels.IndexOf(currentChannel.Value); currentChannel.Value = overlayChannels[(currentIndex + direction + overlayChannels.Count) % overlayChannels.Count]; channelList.ScrollChannelIntoView(currentChannel.Value); }