Пример #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;
            }
        }
Пример #2
0
 private void PrevImage(object sender, RoutedEventArgs e)
 {
     VisualImageHandler.PrevImage();
 }