diff --git a/BerichtGen/FrmOptions.cs b/BerichtGen/FrmOptions.cs index 5839704..9da8a66 100644 --- a/BerichtGen/FrmOptions.cs +++ b/BerichtGen/FrmOptions.cs @@ -85,6 +85,10 @@ namespace BerichtGen if (rb_yes.Checked && cb_pdf.Checked && !hidden) { string pfad = Path.Combine(speicherpfad, string.Format("{0}.pdf", filename)); + Process process = new Process(); + process.StartInfo.FileName = "explorer"; + process.StartInfo.Arguments = pfad; + //** Verbuggt FrmPDFViewer frmPDFViewer = new FrmPDFViewer(pfad); frmPDFViewer.ShowDialog(); } diff --git a/SanSystem/Global.cs b/SanSystem/Global.cs index 2793a1e..5adef44 100644 --- a/SanSystem/Global.cs +++ b/SanSystem/Global.cs @@ -27,7 +27,16 @@ namespace SanSystem { get { - return programmversion; + string version = string.Empty; + using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SanSystem." + "version.txt")) + { + using (StreamReader reader = new StreamReader(stream)) + { + version = reader.ReadToEnd(); + } + } + + return version; } } @@ -113,23 +122,7 @@ namespace SanSystem public Global() { LadeRegistry(); - programmversion = ReadProgrammVersion(); - } - - private string ReadProgrammVersion() - { - // Nachfolgend zeigt alle resources an - //string[] resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); - string version = string.Empty; - using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SanSystem." + "version.txt")) - { - using (StreamReader reader = new StreamReader(stream)) - { - version = reader.ReadToEnd(); - } - } - return version; } ~Global()