private void NewButton_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            IPresentation presentation = Factory.CreatePresentation();

            presentation.UseTemplate();

            presentation.Name = PresentationNameTextBox.Text;
            Resource.FileName = PresentationNameTextBox.Text;

            if (string.IsNullOrEmpty(Resource.SaveLocation) == false)
            {
                Factory.CreatePresentationWriter().Write(presentation, Resource.SaveLocation, Resource.FileName);
            }
            else
            {
                IPresentationWriter writer = Factory.CreatePresentationWriter();
                Resource.SaveLocation = writer.WriteAt(presentation, Resource.FileName);

                if (writer.Canceled)
                {
                    return;
                }
            }

            Resource.Presentation = presentation;

            var window = new PresentationSettingsWindow(presentation);

            window.Show();

            Close();
        }
        private void PresentationSettingsButton_Click(object sender, RoutedEventArgs e)
        {
            var window = new PresentationSettingsWindow(Presentation);

            window.Show();

            Close();
        }