private void MakePDF(object sender, RoutedEventArgs e)
        {
            this.Cursor = Cursors.Wait;
            MakeBlockPictures();
            this.Cursor = Cursors.Arrow;
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter           = "PDF Datei (*.pdf)|*.pdf";
            saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            saveFileDialog.FileName         = "Sitzplan";
            if (saveFileDialog.ShowDialog() == true)
            {
                this.Cursor = Cursors.Wait;
            }
            try
            {
                PDFCreation.MakePDF(saveFileDialog.FileName);
                this.Cursor = Cursors.Arrow;
                MessageBox.Show("Die Datei " + saveFileDialog.FileName + " wurde gespeichert.", "Ergebnis", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            catch (Exception error)
            {
                this.Cursor = Cursors.Arrow;
                MessageBox.Show("Fehler: " + error, "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
        private void Drucken(object sender, RoutedEventArgs e)
        {
            this.Cursor = Cursors.Wait;
            MakeBlockPictures();
            // string tmpPath = System.IO.Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]).Replace("\\bin\\Debug", "\\tmp\\");
            string tmpPath = System.IO.Path.GetTempPath();
            string pdfName = tmpPath + DateTime.Now.ToString("yyyyMMddHHmmssfff") + "_" + "Sitzplan.pdf";

            PDFCreation.MakePDF(pdfName);
            this.Cursor = Cursors.Arrow;

            WebBrowser wb = new WebBrowser();

            wb.Navigate(new Uri(pdfName));

            PdfGUI pdfGUI = new PdfGUI();

            pdfGUI.Content = wb;
            pdfGUI.Topmost = true;
            pdfGUI.Activate();
            pdfGUI.Show();
        }