From 177e87da7cf0f4ee479be4990bd079ff2b004869 Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Wed, 20 Apr 2022 15:33:53 +0200 Subject: [PATCH] Es wird nun der standard PDF viewer angezeigt --- SanSystem/BerichtGen/FrmOptions.cs | 4 +- SanSystem/BerichtGen/FrmPDFViewer.Designer.cs | 97 ------------- SanSystem/BerichtGen/FrmPDFViewer.cs | 34 ----- SanSystem/BerichtGen/FrmPDFViewer.resx | 127 ------------------ SanSystem/SanSystem.csproj | 9 -- 5 files changed, 1 insertion(+), 270 deletions(-) delete mode 100644 SanSystem/BerichtGen/FrmPDFViewer.Designer.cs delete mode 100644 SanSystem/BerichtGen/FrmPDFViewer.cs delete mode 100644 SanSystem/BerichtGen/FrmPDFViewer.resx diff --git a/SanSystem/BerichtGen/FrmOptions.cs b/SanSystem/BerichtGen/FrmOptions.cs index 2e8388c..ca95bb2 100644 --- a/SanSystem/BerichtGen/FrmOptions.cs +++ b/SanSystem/BerichtGen/FrmOptions.cs @@ -91,9 +91,7 @@ namespace BerichtGen Process process = new Process(); process.StartInfo.FileName = "explorer"; process.StartInfo.Arguments = pfad; - //** Verbuggt - FrmPDFViewer frmPDFViewer = new FrmPDFViewer(pfad); - frmPDFViewer.ShowDialog(); + process.Start(); } } diff --git a/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs b/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs deleted file mode 100644 index 9165153..0000000 --- a/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs +++ /dev/null @@ -1,97 +0,0 @@ -namespace BerichtGen -{ - partial class FrmPDFViewer - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings(); - Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPDFViewer)); - Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings(); - this.pdfViewerControl = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl(); - this.SuspendLayout(); - // - // pdfViewerControl - // - this.pdfViewerControl.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool; - this.pdfViewerControl.Dock = System.Windows.Forms.DockStyle.Fill; - this.pdfViewerControl.EnableContextMenu = true; - this.pdfViewerControl.EnableNotificationBar = true; - this.pdfViewerControl.HorizontalScrollOffset = 0; - this.pdfViewerControl.IsBookmarkEnabled = false; - this.pdfViewerControl.IsTextSearchEnabled = false; - this.pdfViewerControl.IsTextSelectionEnabled = false; - this.pdfViewerControl.Location = new System.Drawing.Point(0, 0); - this.pdfViewerControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - messageBoxSettings1.EnableNotification = true; - this.pdfViewerControl.MessageBoxSettings = messageBoxSettings1; - this.pdfViewerControl.MinimumZoomPercentage = 50; - this.pdfViewerControl.Name = "pdfViewerControl"; - this.pdfViewerControl.PageBorderThickness = 1; - pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto; - pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize; - pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation"))); - pdfViewerPrinterSettings1.ShowPrintStatusDialog = true; - this.pdfViewerControl.PrinterSettings = pdfViewerPrinterSettings1; - this.pdfViewerControl.ReferencePath = null; - this.pdfViewerControl.ScrollDisplacementValue = 0; - this.pdfViewerControl.ShowHorizontalScrollBar = true; - this.pdfViewerControl.ShowToolBar = true; - this.pdfViewerControl.ShowVerticalScrollBar = true; - this.pdfViewerControl.Size = new System.Drawing.Size(851, 922); - this.pdfViewerControl.SpaceBetweenPages = 8; - this.pdfViewerControl.TabIndex = 0; - this.pdfViewerControl.Text = "pdfViewerControl1"; - textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64))))); - textSearchSettings1.HighlightAllInstance = true; - textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); - this.pdfViewerControl.TextSearchSettings = textSearchSettings1; - this.pdfViewerControl.VerticalScrollOffset = 0; - this.pdfViewerControl.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default; - this.pdfViewerControl.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.FitPage; - // - // FrmPDFViewer - // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoSize = true; - this.ClientSize = new System.Drawing.Size(851, 922); - this.Controls.Add(this.pdfViewerControl); - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.Name = "FrmPDFViewer"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "FrmPDFViewer"; - this.Load += new System.EventHandler(this.FrmPDFViewer_Load); - this.ResumeLayout(false); - - } - - #endregion - - private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl; - } -} \ No newline at end of file diff --git a/SanSystem/BerichtGen/FrmPDFViewer.cs b/SanSystem/BerichtGen/FrmPDFViewer.cs deleted file mode 100644 index 005a4cb..0000000 --- a/SanSystem/BerichtGen/FrmPDFViewer.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace BerichtGen -{ - /// - /// - /// - public partial class FrmPDFViewer : Form - { - string pfad; - /// - /// - /// - /// - public FrmPDFViewer(string pfad) - { - InitializeComponent(); - this.pfad = pfad; - } - - private void FrmPDFViewer_Load(object sender, EventArgs e) - { - pdfViewerControl.Load(pfad); - } - } -} diff --git a/SanSystem/BerichtGen/FrmPDFViewer.resx b/SanSystem/BerichtGen/FrmPDFViewer.resx deleted file mode 100644 index d9e357e..0000000 --- a/SanSystem/BerichtGen/FrmPDFViewer.resx +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 - dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh - d2luZy5Qb2ludEYCAAAAAXgBeQAACwsCAAAAAAAAAAAAAAAL - - - \ No newline at end of file diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj index 401817a..56614a2 100644 --- a/SanSystem/SanSystem.csproj +++ b/SanSystem/SanSystem.csproj @@ -145,12 +145,6 @@ FrmOptions.cs - - Form - - - FrmPDFViewer.cs - @@ -392,9 +386,6 @@ FrmOptions.cs - - FrmPDFViewer.cs - FrmAktuelleBesatzung.cs