Esempio n. 1
0
        private void featuredStreamPlayer_CurrentStateChanged(object sender, RoutedEventArgs e)
        {
            if (featuredStreamPlayer.CurrentState == MediaElementState.Playing)
            {
                streamDoneLoading = true;
                if (selectedStreamIndex != 0)
                {
                    backStreamButton.IsEnabled = true;
                }
                streamStreamButton.IsEnabled  = true;
                pausePlayButton.IsEnabled     = true;
                channelStreamButton.IsEnabled = true;
                if (selectedStreamIndex != 4)
                {
                    forwardStreamButton.IsEnabled = true;
                }
                topGamesGridView.Visibility = Windows.UI.Xaml.Visibility.Visible;
            }

            streamerObject.mediaElement_CurrentStateChanged(sender, e);
        }
Esempio n. 2
0
 private void streamPlayer_CurrentStateChanged(object sender, RoutedEventArgs e)
 {
     streamerObject.mediaElement_CurrentStateChanged(sender, e);
 }