private void PreviewButton_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (Presentation.Slides.Count == 0)
            {
                MessageBox.Show("There are no slides to show,\nplease add a slide and try again.", "Missing Slides", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }
            var slideShowForm = new SlideShowForm(Presentation);

            slideShowForm.Show();

            slideShowForm.Focus();
        }
        public PresentationViewerMain()
        {
            InitializeComponent();

            Resource.Presentation = LoadPresentation();

            if (Resource.Presentation != null)
            {
                var window = new SlideShowForm(Resource.Presentation);
                window.Show();

                Close();
            }
            else
            {
                MessageBox.Show("Couldent open presentation");
                Close();
            }
        }