Ejemplo n.º 1
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Left)
     {
         Spotify.PreviousSong();
     }
     else if (e.Key == Key.Right)
     {
         Spotify.NextSong();
     }
     else if (e.Key == Key.Escape)
     {
         timer.Stop();
         this.webView.Navigate((Uri)null);
         this.Close();
         Spotify.GetSetVolume(_volume);
         _window.FullNow(false);
         _window.Visibility = Visibility.Visible;
     }
     e.Handled = true;
 }
Ejemplo n.º 2
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Left)
     {
         Spotify.PreviousSong();
     }
     else if (e.Key == Key.Right)
     {
         Spotify.NextSong();
     }
     else if (e.Key == Key.Space ^ e.Key == Key.Enter)
     {
         Spotify.PausePlaySong();
     }
     else if (e.Key == Key.Escape)
     {
         timer.Stop();
         this.Close();
         _window.FullNow(false);
         _window.Visibility = Visibility.Visible;
     }
     e.Handled = true;
 }
Ejemplo n.º 3
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Left)
     {
         Spotify.PreviousSong();
     }
     else if (e.Key == Key.Right)
     {
         Spotify.NextSong();
     }
     else if (e.Key == Key.Space ^ e.Key == Key.Enter)
     {
         Spotify.PausePlaySong();
     }
     else if (e.Key == Key.F)
     {
         FullNow(true);
         FullScreen fullScreen = new FullScreen(this);
         fullScreen.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         fullScreen.Show();
         fullScreen.WindowState = WindowState.Maximized;
     }
     e.Handled = true;
 }
Ejemplo n.º 4
0
 private void Next_Click(object sender, RoutedEventArgs e)
 {
     Spotify.NextSong();
 }