Esempio n. 1
0
        private void Shortcuts(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Right:
                ImageHandler.NextImage();
                break;

            case Key.Left:
                ImageHandler.PrevImage();
                break;

            case Key.Escape:
                new Dashboard(ImageHandler).Show();
                Close();
                break;

            case Key.Space:
                ToggleSlideshow();
                break;
            }
        }
Esempio n. 2
0
 private void NextImage(object sender, RoutedEventArgs e)
 {
     VisualImageHandler.NextImage();
 }