Änderung
- Logfile auf Textfile geändert
This commit is contained in:
parent
461cd195f5
commit
4f5f8d94ad
Binary file not shown.
BIN
.vs/ShowTextFile.git/v17/.suo
Normal file
BIN
.vs/ShowTextFile.git/v17/.suo
Normal file
Binary file not shown.
@ -1,181 +1,181 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Eugen.ESystem.IO
|
namespace Eugen.ESystem.IO
|
||||||
{
|
{
|
||||||
public class ShowTextFile
|
public class ShowTextFile
|
||||||
{
|
{
|
||||||
#region Version und Copyright
|
#region Version und Copyright
|
||||||
// Version und Copyright
|
// Version und Copyright
|
||||||
static string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
static string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
||||||
static string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
static string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||||||
static string copyright = GenerateCopyright();
|
static string copyright = GenerateCopyright();
|
||||||
|
|
||||||
//Assembly Datum und Zeit
|
//Assembly Datum und Zeit
|
||||||
static DateTime value = AssemblyDateTime();
|
static DateTime value = AssemblyDateTime();
|
||||||
static string date = value.ToShortDateString();
|
static string date = value.ToShortDateString();
|
||||||
static string time = value.ToLongTimeString();
|
static string time = value.ToLongTimeString();
|
||||||
|
|
||||||
private static DateTime AssemblyDateTime()
|
private static DateTime AssemblyDateTime()
|
||||||
{
|
{
|
||||||
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||||
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
|
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
|
||||||
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
|
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
|
||||||
return buildDateTime;
|
return buildDateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string CurrentYear()
|
private static string CurrentYear()
|
||||||
{
|
{
|
||||||
DateTime dtn = DateTime.Now;
|
DateTime dtn = DateTime.Now;
|
||||||
return dtn.Year.ToString();
|
return dtn.Year.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string StartYear()
|
private static string StartYear()
|
||||||
{
|
{
|
||||||
string startYear = "";
|
string startYear = "";
|
||||||
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
|
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
|
||||||
{
|
{
|
||||||
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
|
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
|
||||||
while (startYear.StartsWith(" "))
|
while (startYear.StartsWith(" "))
|
||||||
{
|
{
|
||||||
startYear = startYear.Remove(0, 1);
|
startYear = startYear.Remove(0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (startYear.Contains("-"))
|
if (startYear.Contains("-"))
|
||||||
{
|
{
|
||||||
startYear = startYear.Remove(startYear.IndexOf("-"));
|
startYear = startYear.Remove(startYear.IndexOf("-"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
startYear = startYear.Remove(startYear.IndexOf(" "));
|
startYear = startYear.Remove(startYear.IndexOf(" "));
|
||||||
}
|
}
|
||||||
return startYear;
|
return startYear;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DateTime dtn = DateTime.Now;
|
DateTime dtn = DateTime.Now;
|
||||||
return dtn.Year.ToString();
|
return dtn.Year.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string GenerateCopyright()
|
private static string GenerateCopyright()
|
||||||
{
|
{
|
||||||
string startYear = StartYear();
|
string startYear = StartYear();
|
||||||
string currentYear = CurrentYear();
|
string currentYear = CurrentYear();
|
||||||
|
|
||||||
if (startYear == currentYear)
|
if (startYear == currentYear)
|
||||||
{
|
{
|
||||||
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string temp = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
string temp = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||||||
string start = temp.Remove(temp.IndexOf(startYear) - 1);
|
string start = temp.Remove(temp.IndexOf(startYear) - 1);
|
||||||
string end = (temp.Remove(0, temp.IndexOf(" by")));
|
string end = (temp.Remove(0, temp.IndexOf(" by")));
|
||||||
|
|
||||||
return String.Concat(start, " ", startYear, "-", currentYear, end);
|
return String.Concat(start, " ", startYear, "-", currentYear, end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region DLL-Info
|
#region DLL-Info
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the name of the dll file.
|
/// Contains the name of the dll file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string DllName { private set; get; }
|
public static string DllName { private set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the version of the dll file.
|
/// Contains the version of the dll file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string DllVersion { private set; get; }
|
public static string DllVersion { private set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the copyright notice.
|
/// Contains the copyright notice.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Copyright { private set; get; }
|
public static string Copyright { private set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the name-, version- and copyright-information of the dll file.
|
/// Contains the name-, version- and copyright-information of the dll file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string[] DllInfo { private set; get; }
|
public static string[] DllInfo { private set; get; }
|
||||||
|
|
||||||
private static void SetDllInfo()
|
private static void SetDllInfo()
|
||||||
{
|
{
|
||||||
//Name, Version und Copyright setzen
|
//Name, Version und Copyright setzen
|
||||||
DllName = dllName;
|
DllName = dllName;
|
||||||
DllVersion = dllVersion;
|
DllVersion = dllVersion;
|
||||||
Copyright = copyright;
|
Copyright = copyright;
|
||||||
|
|
||||||
string[] dllInfo = new string[3];
|
string[] dllInfo = new string[3];
|
||||||
dllInfo[0] = dllName;
|
dllInfo[0] = dllName;
|
||||||
dllInfo[1] = dllVersion;
|
dllInfo[1] = dllVersion;
|
||||||
dllInfo[2] = copyright;
|
dllInfo[2] = copyright;
|
||||||
DllInfo = dllInfo;
|
DllInfo = dllInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string ProgramName { private set; get; }
|
protected string ProgramName { private set; get; }
|
||||||
protected string ProgramVersion { private set; get; }
|
protected string ProgramVersion { private set; get; }
|
||||||
protected string ProgramCopyright { private set; get; }
|
protected string ProgramCopyright { private set; get; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shows a text file in the standard editor, or when not available, then in notepad
|
/// Shows a text file in the standard editor, or when not available, then in notepad
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static ShowTextFile()
|
static ShowTextFile()
|
||||||
{
|
{
|
||||||
SetDllInfo();
|
SetDllInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shows the text file
|
/// Shows the text file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="logFileName">A valid log file name with path and extension.</param>
|
/// <param name="textFileName">A valid text file name with path and extension.</param>
|
||||||
/// <returns>Returns 'true' if the file could be displayed or 'false' if an error occurred.</returns>
|
/// <returns>Wheather the progress was successful.</returns>
|
||||||
public static bool Show(string logFileName)
|
public static bool Show(string textFileName)
|
||||||
{
|
{
|
||||||
if (File.Exists(logFileName))
|
if (File.Exists(textFileName))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//Aufruf mit dem Standardprogramm
|
//Aufruf mit dem Standardprogramm
|
||||||
var process = new Process();
|
var process = new Process();
|
||||||
process.StartInfo = new ProcessStartInfo()
|
process.StartInfo = new ProcessStartInfo()
|
||||||
{
|
{
|
||||||
UseShellExecute = true,
|
UseShellExecute = true,
|
||||||
FileName = logFileName
|
FileName = textFileName
|
||||||
};
|
};
|
||||||
|
|
||||||
process.Start();
|
process.Start();
|
||||||
process.WaitForExit();
|
process.WaitForExit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const string program = "Notepad.exe"; //Aufruf mit Notepad
|
const string program = "Notepad.exe"; //Aufruf mit Notepad
|
||||||
|
|
||||||
ProcessStartInfo start = new ProcessStartInfo(program, logFileName);
|
ProcessStartInfo start = new ProcessStartInfo(program, textFileName);
|
||||||
Process.Start(start);
|
Process.Start(start);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,49 +1,49 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{3FD018A8-E6B0-4886-9572-20536E0C180C}</ProjectGuid>
|
<ProjectGuid>{3FD018A8-E6B0-4886-9572-20536E0C180C}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>ShowTextFile</RootNamespace>
|
<RootNamespace>ShowTextFile</RootNamespace>
|
||||||
<AssemblyName>heshowtf</AssemblyName>
|
<AssemblyName>heshowtf</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>false</Deterministic>
|
<Deterministic>false</Deterministic>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ShowTextFile.cs" />
|
<Compile Include="ShowTextFile.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||||
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
5dd46b078fcb7eb47b839993a0ecf1c234952a14
|
a53de154b2bb7e09689ffe1ddd4cea9951deded9
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.CoreCompileInputs.cache
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.CoreCompileInputs.cache
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.dll
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.dll
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.pdb
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.pdb
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.dll
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.dll
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.pdb
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.pdb
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.AssemblyReference.cache
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.AssemblyReference.cache
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
133
Test_ShowTextFile/Properties/Resources.Designer.cs
generated
133
Test_ShowTextFile/Properties/Resources.Designer.cs
generated
@ -1,70 +1,63 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
// Laufzeitversion: 4.0.30319.42000
|
// Laufzeitversion:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
// der Code neu generiert wird.
|
// der Code erneut generiert wird.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Test_ShowTextFile.Properties {
|
||||||
namespace Test_ShowTextFile.Properties
|
using System;
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
/// <summary>
|
||||||
/// </summary>
|
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
|
/// </summary>
|
||||||
// über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
// mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
|
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
internal class Resources
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
{
|
internal class Resources {
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
internal Resources()
|
internal Resources() {
|
||||||
{
|
}
|
||||||
}
|
|
||||||
|
/// <summary>
|
||||||
/// <summary>
|
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
/// </summary>
|
||||||
/// </summary>
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager
|
get {
|
||||||
{
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
get
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_ShowTextFile.Properties.Resources", typeof(Resources).Assembly);
|
||||||
{
|
resourceMan = temp;
|
||||||
if ((resourceMan == null))
|
}
|
||||||
{
|
return resourceMan;
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_ShowTextFile.Properties.Resources", typeof(Resources).Assembly);
|
}
|
||||||
resourceMan = temp;
|
}
|
||||||
}
|
|
||||||
return resourceMan;
|
/// <summary>
|
||||||
}
|
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||||
}
|
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||||
|
/// </summary>
|
||||||
/// <summary>
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
/// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
|
get {
|
||||||
/// </summary>
|
return resourceCulture;
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
}
|
||||||
internal static global::System.Globalization.CultureInfo Culture
|
set {
|
||||||
{
|
resourceCulture = value;
|
||||||
get
|
}
|
||||||
{
|
}
|
||||||
return resourceCulture;
|
}
|
||||||
}
|
}
|
||||||
set
|
|
||||||
{
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
55
Test_ShowTextFile/Properties/Settings.Designer.cs
generated
55
Test_ShowTextFile/Properties/Settings.Designer.cs
generated
@ -1,29 +1,26 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Laufzeitversion:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
// the code is regenerated.
|
// der Code erneut generiert wird.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Test_ShowTextFile.Properties {
|
||||||
namespace Test_ShowTextFile.Properties
|
|
||||||
{
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
{
|
|
||||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
|
||||||
|
public static Settings Default {
|
||||||
public static Settings Default
|
get {
|
||||||
{
|
return defaultInstance;
|
||||||
get
|
}
|
||||||
{
|
}
|
||||||
return defaultInstance;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1,86 +1,88 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{9E358856-190F-4D90-85DA-7394F86F9B22}</ProjectGuid>
|
<ProjectGuid>{9E358856-190F-4D90-85DA-7394F86F9B22}</ProjectGuid>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<RootNamespace>Test_ShowTextFile</RootNamespace>
|
<RootNamespace>Test_ShowTextFile</RootNamespace>
|
||||||
<AssemblyName>Test_ShowTextFile</AssemblyName>
|
<AssemblyName>Test_ShowTextFile</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>false</Deterministic>
|
<Deterministic>false</Deterministic>
|
||||||
</PropertyGroup>
|
<TargetFrameworkProfile />
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
</PropertyGroup>
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>full</DebugType>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<Optimize>false</Optimize>
|
<DebugType>full</DebugType>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<Optimize>false</Optimize>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<WarningLevel>4</WarningLevel>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
<WarningLevel>4</WarningLevel>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
</PropertyGroup>
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<Optimize>true</Optimize>
|
<DebugType>pdbonly</DebugType>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<Optimize>true</Optimize>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<WarningLevel>4</WarningLevel>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
<WarningLevel>4</WarningLevel>
|
||||||
<ItemGroup>
|
</PropertyGroup>
|
||||||
<Reference Include="heshowtf">
|
<ItemGroup>
|
||||||
<HintPath>..\ShowTextFile\bin\Debug\heshowtf.dll</HintPath>
|
<Reference Include="heshowtf">
|
||||||
</Reference>
|
<HintPath>..\ShowTextFile\bin\Debug\heshowtf.dll</HintPath>
|
||||||
<Reference Include="System" />
|
</Reference>
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Deployment" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Deployment" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
</ItemGroup>
|
<Reference Include="System.Xml" />
|
||||||
<ItemGroup>
|
</ItemGroup>
|
||||||
<Compile Include="Form1.cs">
|
<ItemGroup>
|
||||||
<SubType>Form</SubType>
|
<Compile Include="Form1.cs">
|
||||||
</Compile>
|
<SubType>Form</SubType>
|
||||||
<Compile Include="Form1.Designer.cs">
|
</Compile>
|
||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<Compile Include="Form1.Designer.cs">
|
||||||
</Compile>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
<Compile Include="Program.cs" />
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<EmbeddedResource Include="Form1.resx">
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<EmbeddedResource Include="Form1.resx">
|
||||||
</EmbeddedResource>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
</EmbeddedResource>
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
<SubType>Designer</SubType>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
<SubType>Designer</SubType>
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
</EmbeddedResource>
|
||||||
<AutoGen>True</AutoGen>
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<AutoGen>True</AutoGen>
|
||||||
</Compile>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<None Include="Properties\Settings.settings">
|
<DesignTime>True</DesignTime>
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
</Compile>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<None Include="Properties\Settings.settings">
|
||||||
</None>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<Compile Include="Properties\Settings.Designer.cs">
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
<AutoGen>True</AutoGen>
|
</None>
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<Compile Include="Properties\Settings.Designer.cs">
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<AutoGen>True</AutoGen>
|
||||||
</Compile>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
</ItemGroup>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
<ItemGroup>
|
</Compile>
|
||||||
<None Include="App.config" />
|
</ItemGroup>
|
||||||
</ItemGroup>
|
<ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
5b10fe3cfe3f8ca386e9c943cfca7fbe1e8a5814
|
9e73677d002d12c5e3fda8ecb6c4d731279a6e3e
|
||||||
|
|||||||
@ -1,13 +1,14 @@
|
|||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe.config
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe.config
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.pdb
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.pdb
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.dll
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.dll
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.pdb
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.pdb
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.AssemblyReference.cache
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.AssemblyReference.cache
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Form1.resources
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Form1.resources
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Properties.Resources.resources
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Properties.Resources.resources
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.GenerateResource.cache
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.GenerateResource.cache
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CoreCompileInputs.cache
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CoreCompileInputs.cache
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CopyComplete
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CopyComplete
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.exe
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.exe
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.pdb
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.pdb
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.SuggestedBindingRedirects.cache
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user