private void Button_Preview_Click(object sender, RoutedEventArgs e)
 {
     if (_previewWindow == null)
     {
         _previewWindow         = new PreviewWindow(this);
         _previewWindow.Closed += _previewWindow_Closed;
         _previewWindow.Show();
         _previewWindow.GeneratePreview();
     }
     else
     {
         _previewWindow.GeneratePreview();
     }
     Button_Generate.IsEnabled = true;
 }
 private void _previewWindow_Closed(object sender, EventArgs e)
 {
     _previewWindow            = null;
     Button_Generate.IsEnabled = false;
 }