diff --git a/.vs/LogWriter.git/v17/.suo b/.vs/LogWriter.git/v17/.suo index fab5830..5a91728 100644 Binary files a/.vs/LogWriter.git/v17/.suo and b/.vs/LogWriter.git/v17/.suo differ diff --git a/LogWriter/AppResources.Designer.cs b/LogWriter/AppResources.Designer.cs index 7671094..2326abb 100644 --- a/LogWriter/AppResources.Designer.cs +++ b/LogWriter/AppResources.Designer.cs @@ -69,6 +69,15 @@ namespace Eugen.ESystem.IO { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Schwerer Fehler ähnelt. + /// + internal static string msg001cap { + get { + return ResourceManager.GetString("msg001cap", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die FileFormat has the wrong format. ähnelt. /// @@ -77,5 +86,32 @@ namespace Eugen.ESystem.IO { return ResourceManager.GetString("msg002", resourceCulture); } } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Fehler ähnelt. + /// + internal static string msg002cap { + get { + return ResourceManager.GetString("msg002cap", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Der für die Anzeige notwendige Editor konnte nicht gefunden werden. ähnelt. + /// + internal static string msg003 { + get { + return ResourceManager.GetString("msg003", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Die Log-Datei wurde nicht gefunden. ähnelt. + /// + internal static string msg004 { + get { + return ResourceManager.GetString("msg004", resourceCulture); + } + } } } diff --git a/LogWriter/AppResources.de.resx b/LogWriter/AppResources.de.resx index e358631..729aad1 100644 --- a/LogWriter/AppResources.de.resx +++ b/LogWriter/AppResources.de.resx @@ -1,126 +1,138 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - Das in Pfad angegebene Verzeichnis wurde nicht gefunden. - - - FileFormat hat das falsche Format. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Das in Pfad angegebene Verzeichnis wurde nicht gefunden. + + + Schwerer Fehler + + + FileFormat hat das falsche Format. + + + Fehler + + + Der für die Anzeige notwendige Editor konnte nicht gefunden werden. + + + Die Log-Datei wurde nicht gefunden. + \ No newline at end of file diff --git a/LogWriter/AppResources.en.resx b/LogWriter/AppResources.en.resx index 59c633f..888f6ea 100644 --- a/LogWriter/AppResources.en.resx +++ b/LogWriter/AppResources.en.resx @@ -1,126 +1,138 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - The directory specifyed in Path was not found. - - - FileFormat has the wrong format. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + The directory specifyed in Path was not found. + + + Fatal Error + + + FileFormat has the wrong format. + + + Error + + + The editor required for the display could not be found. + + + The log file was not found. + \ No newline at end of file diff --git a/LogWriter/AppResources.resx b/LogWriter/AppResources.resx index 59c633f..875196c 100644 --- a/LogWriter/AppResources.resx +++ b/LogWriter/AppResources.resx @@ -1,126 +1,138 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - The directory specifyed in Path was not found. - - - FileFormat has the wrong format. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + The directory specifyed in Path was not found. + + + Schwerer Fehler + + + FileFormat has the wrong format. + + + Fehler + + + Der für die Anzeige notwendige Editor konnte nicht gefunden werden. + + + Die Log-Datei wurde nicht gefunden. + \ No newline at end of file diff --git a/LogWriter/LogWriter.cs b/LogWriter/LogWriter.cs index 404d5db..d40e8f8 100644 --- a/LogWriter/LogWriter.cs +++ b/LogWriter/LogWriter.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; +using System.Windows.Forms; namespace Eugen.ESystem.IO { @@ -482,6 +484,47 @@ namespace Eugen.ESystem.IO return true; // file doesn't exist - is empty } } + + /// + /// Shows the Logfile. + /// + public void ShowLogFile() + { + //string messageText = ""; + //string messageHeadline = ""; + //string file = String.Concat(tempDir, "\\CleanUp.log"); + + if (File.Exists(String.Concat(path, "\\", filename))) + { + // Log-Datei anzeigen + try + { + Process P = new Process(); + P.StartInfo.FileName = "Notepad.exe"; + // hier kann z.B. eine Textdatei mit übergeben werden + P.StartInfo.Arguments = String.Concat(path, "\\", filename); + P.Start(); + } + catch + { + // Editor nicht gefunden + MessageBox.Show(AppResources.msg003, + AppResources.msg001cap, + MessageBoxButtons.OK, + MessageBoxIcon.Error, + MessageBoxDefaultButton.Button1); + } + } + else + { + // Log-Datei nicht gefunden + MessageBox.Show(AppResources.msg004, + AppResources.msg002cap, + MessageBoxButtons.OK, + MessageBoxIcon.Warning, + MessageBoxDefaultButton.Button1); + } + } #endregion #region protected members diff --git a/LogWriter/LogWriter.csproj b/LogWriter/LogWriter.csproj index e9f7e24..008d231 100644 --- a/LogWriter/LogWriter.csproj +++ b/LogWriter/LogWriter.csproj @@ -34,6 +34,7 @@ + diff --git a/LogWriter/bin/Debug/de/helogwri.resources.dll b/LogWriter/bin/Debug/de/helogwri.resources.dll index 4afc52c..6129b0a 100644 Binary files a/LogWriter/bin/Debug/de/helogwri.resources.dll and b/LogWriter/bin/Debug/de/helogwri.resources.dll differ diff --git a/LogWriter/bin/Debug/en/helogwri.resources.dll b/LogWriter/bin/Debug/en/helogwri.resources.dll index f2b2542..f1fa85e 100644 Binary files a/LogWriter/bin/Debug/en/helogwri.resources.dll and b/LogWriter/bin/Debug/en/helogwri.resources.dll differ diff --git a/LogWriter/bin/Debug/helogwri.dll b/LogWriter/bin/Debug/helogwri.dll index 9c149f8..cd848b8 100644 Binary files a/LogWriter/bin/Debug/helogwri.dll and b/LogWriter/bin/Debug/helogwri.dll differ diff --git a/LogWriter/bin/Debug/helogwri.pdb b/LogWriter/bin/Debug/helogwri.pdb index a7fbfc7..53bf2a8 100644 Binary files a/LogWriter/bin/Debug/helogwri.pdb and b/LogWriter/bin/Debug/helogwri.pdb differ diff --git a/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferences.cache index cdfaa77..c6920c5 100644 Binary files a/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index b726438..fe68081 100644 Binary files a/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/LogWriter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/LogWriter/obj/Debug/LogWriter.AppResources.de.resources b/LogWriter/obj/Debug/LogWriter.AppResources.de.resources index f35a8ce..bbf8f51 100644 Binary files a/LogWriter/obj/Debug/LogWriter.AppResources.de.resources and b/LogWriter/obj/Debug/LogWriter.AppResources.de.resources differ diff --git a/LogWriter/obj/Debug/LogWriter.AppResources.en.resources b/LogWriter/obj/Debug/LogWriter.AppResources.en.resources index 4d90900..3b9b940 100644 Binary files a/LogWriter/obj/Debug/LogWriter.AppResources.en.resources and b/LogWriter/obj/Debug/LogWriter.AppResources.en.resources differ diff --git a/LogWriter/obj/Debug/LogWriter.AppResources.resources b/LogWriter/obj/Debug/LogWriter.AppResources.resources index 4d90900..cb72e5a 100644 Binary files a/LogWriter/obj/Debug/LogWriter.AppResources.resources and b/LogWriter/obj/Debug/LogWriter.AppResources.resources differ diff --git a/LogWriter/obj/Debug/LogWriter.csproj.AssemblyReference.cache b/LogWriter/obj/Debug/LogWriter.csproj.AssemblyReference.cache index ce6c4ca..6227aa3 100644 Binary files a/LogWriter/obj/Debug/LogWriter.csproj.AssemblyReference.cache and b/LogWriter/obj/Debug/LogWriter.csproj.AssemblyReference.cache differ diff --git a/LogWriter/obj/Debug/LogWriter.csproj.CoreCompileInputs.cache b/LogWriter/obj/Debug/LogWriter.csproj.CoreCompileInputs.cache index c20eb4c..6724129 100644 --- a/LogWriter/obj/Debug/LogWriter.csproj.CoreCompileInputs.cache +++ b/LogWriter/obj/Debug/LogWriter.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -0c0190d04d7df5cf01e539cc5977a2261a4f5476 +ea63bd59f5cf4e43a4d116f52f8a38689920a819 diff --git a/LogWriter/obj/Debug/LogWriter.csproj.GenerateResource.cache b/LogWriter/obj/Debug/LogWriter.csproj.GenerateResource.cache index a75eb92..08b98d3 100644 Binary files a/LogWriter/obj/Debug/LogWriter.csproj.GenerateResource.cache and b/LogWriter/obj/Debug/LogWriter.csproj.GenerateResource.cache differ diff --git a/LogWriter/obj/Debug/TempPE/AppResources.Designer.cs.dll b/LogWriter/obj/Debug/TempPE/AppResources.Designer.cs.dll index 1b969f2..6f544fc 100644 Binary files a/LogWriter/obj/Debug/TempPE/AppResources.Designer.cs.dll and b/LogWriter/obj/Debug/TempPE/AppResources.Designer.cs.dll differ diff --git a/LogWriter/obj/Debug/de/helogwri.resources.dll b/LogWriter/obj/Debug/de/helogwri.resources.dll index 4afc52c..6129b0a 100644 Binary files a/LogWriter/obj/Debug/de/helogwri.resources.dll and b/LogWriter/obj/Debug/de/helogwri.resources.dll differ diff --git a/LogWriter/obj/Debug/en/helogwri.resources.dll b/LogWriter/obj/Debug/en/helogwri.resources.dll index f2b2542..f1fa85e 100644 Binary files a/LogWriter/obj/Debug/en/helogwri.resources.dll and b/LogWriter/obj/Debug/en/helogwri.resources.dll differ diff --git a/LogWriter/obj/Debug/helogwri.dll b/LogWriter/obj/Debug/helogwri.dll index 9c149f8..cd848b8 100644 Binary files a/LogWriter/obj/Debug/helogwri.dll and b/LogWriter/obj/Debug/helogwri.dll differ diff --git a/LogWriter/obj/Debug/helogwri.pdb b/LogWriter/obj/Debug/helogwri.pdb index a7fbfc7..53bf2a8 100644 Binary files a/LogWriter/obj/Debug/helogwri.pdb and b/LogWriter/obj/Debug/helogwri.pdb differ