commit 0bc26150b999871a0941f4919f1a247c6c12d9e7 Author: Eugen Höglinger Date: Thu Nov 26 17:29:44 2020 +0100 Initialize diff --git a/.vs/Test_ProgrammInfo.git/v16/.suo b/.vs/Test_ProgrammInfo.git/v16/.suo new file mode 100644 index 0000000..aecf4fb Binary files /dev/null and b/.vs/Test_ProgrammInfo.git/v16/.suo differ diff --git a/ProgramInfo/ProgramInfo.cs b/ProgramInfo/ProgramInfo.cs new file mode 100644 index 0000000..6c44ba1 --- /dev/null +++ b/ProgramInfo/ProgramInfo.cs @@ -0,0 +1,101 @@ +using System; +using System.IO; +using System.Reflection; +using System.Windows.Forms; + +namespace Eugen.ESystem.Windows.Forms +{ + public class ProgramInfo + { + #region Version und Copyright + // Version und Copyright + string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen + string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + string copyright = GenerateCopyright(); + string icon = Application.StartupPath + "\\Info.bmp"; + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + string date = value.ToShortDateString(); + string time = value.ToLongTimeString(); + private static DateTime AssemblyDateTime() + { + 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)); + //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original) + return buildDateTime; + } + + private static string CurrentYear() + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + + private static string StartYear() + { + string startYear = ""; + if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) + { + startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", ""); + while (startYear.StartsWith(" ")) + { + startYear = startYear.Remove(0, 1); + } + startYear = startYear.Remove(startYear.IndexOf(" ")); + return startYear; + } + else + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + } + + private static string GenerateCopyright() + { + string startYear = StartYear(); + string currentYear = CurrentYear(); + + if (startYear == currentYear) + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + else + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear)); + } + } + #endregion + + #region Program-Info + /// + /// Contains the name of the program file + /// + public static string ProgramName { set; get; } + + /// + /// Contains the version of the program file + /// + public static string ProgramVersion { set; get; } + + /// + /// Contains the copyright notice + /// + public static string Copyright { set; get; } + + private void SetProgramInfo() + { + //Name, Version und Copyright setzen + ProgramName = dllName; + ProgramVersion = dllVersion; + Copyright = copyright; + } + #endregion + + public ProgramInfo() + { + SetProgramInfo(); + } + } +} diff --git a/ProgramInfo/ProgramInfo.csproj b/ProgramInfo/ProgramInfo.csproj new file mode 100644 index 0000000..79f3729 --- /dev/null +++ b/ProgramInfo/ProgramInfo.csproj @@ -0,0 +1,50 @@ + + + + + Debug + AnyCPU + {B156EDB9-8970-4117-A5A5-17CE25EA20A0} + Library + Properties + ProgramInfo + ProgramInfo + v4.7.2 + 512 + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ProgramInfo/Properties/AssemblyInfo.cs b/ProgramInfo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7d61a14 --- /dev/null +++ b/ProgramInfo/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("ProgramInfo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ProgramInfo")] +[assembly: AssemblyCopyright("Copyright © 2020 by Eugen Höglinger")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("b156edb9-8970-4117-a5a5-17ce25ea20a0")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramInfo/bin/Debug/ProgramInfo.dll b/ProgramInfo/bin/Debug/ProgramInfo.dll new file mode 100644 index 0000000..4e085ad Binary files /dev/null and b/ProgramInfo/bin/Debug/ProgramInfo.dll differ diff --git a/ProgramInfo/bin/Debug/ProgramInfo.pdb b/ProgramInfo/bin/Debug/ProgramInfo.pdb new file mode 100644 index 0000000..f23a164 Binary files /dev/null and b/ProgramInfo/bin/Debug/ProgramInfo.pdb differ diff --git a/ProgramInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/ProgramInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/ProgramInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/ProgramInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f6690d1 Binary files /dev/null and b/ProgramInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramInfo/obj/Debug/ProgramInfo.csproj.CoreCompileInputs.cache b/ProgramInfo/obj/Debug/ProgramInfo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..3a91fa4 --- /dev/null +++ b/ProgramInfo/obj/Debug/ProgramInfo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +0c70bfae10a8d9fe5a0d58accd38681704a706f0 diff --git a/ProgramInfo/obj/Debug/ProgramInfo.csproj.FileListAbsolute.txt b/ProgramInfo/obj/Debug/ProgramInfo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..ed88fd8 --- /dev/null +++ b/ProgramInfo/obj/Debug/ProgramInfo.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\ProgramInfo\bin\Debug\ProgramInfo.dll +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\ProgramInfo\bin\Debug\ProgramInfo.pdb +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\ProgramInfo\obj\Debug\ProgramInfo.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\ProgramInfo\obj\Debug\ProgramInfo.dll +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\ProgramInfo\obj\Debug\ProgramInfo.pdb diff --git a/ProgramInfo/obj/Debug/ProgramInfo.dll b/ProgramInfo/obj/Debug/ProgramInfo.dll new file mode 100644 index 0000000..4e085ad Binary files /dev/null and b/ProgramInfo/obj/Debug/ProgramInfo.dll differ diff --git a/ProgramInfo/obj/Debug/ProgramInfo.pdb b/ProgramInfo/obj/Debug/ProgramInfo.pdb new file mode 100644 index 0000000..f23a164 Binary files /dev/null and b/ProgramInfo/obj/Debug/ProgramInfo.pdb differ diff --git a/Test_ProgrammInfo.git.sln b/Test_ProgrammInfo.git.sln new file mode 100644 index 0000000..957a47f --- /dev/null +++ b/Test_ProgrammInfo.git.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30621.155 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_ProgrammInfo", "Test_ProgrammInfo\Test_ProgrammInfo.csproj", "{9B2836EC-5B07-4772-ADA0-21F46AC9F4A6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9B2836EC-5B07-4772-ADA0-21F46AC9F4A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9B2836EC-5B07-4772-ADA0-21F46AC9F4A6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9B2836EC-5B07-4772-ADA0-21F46AC9F4A6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9B2836EC-5B07-4772-ADA0-21F46AC9F4A6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4D65B693-8998-4BFE-B124-10D13919E9DB} + EndGlobalSection +EndGlobal diff --git a/Test_ProgrammInfo/App.config b/Test_ProgrammInfo/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Test_ProgrammInfo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test_ProgrammInfo/Form1.Designer.cs b/Test_ProgrammInfo/Form1.Designer.cs new file mode 100644 index 0000000..d4a0522 --- /dev/null +++ b/Test_ProgrammInfo/Form1.Designer.cs @@ -0,0 +1,75 @@ +namespace Test_ProgrammInfo +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.buttonShowInfo = new System.Windows.Forms.Button(); + this.labelInfo = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // buttonShowInfo + // + this.buttonShowInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonShowInfo.Location = new System.Drawing.Point(13, 238); + this.buttonShowInfo.Name = "buttonShowInfo"; + this.buttonShowInfo.Size = new System.Drawing.Size(75, 23); + this.buttonShowInfo.TabIndex = 0; + this.buttonShowInfo.Text = "Show Info"; + this.buttonShowInfo.UseVisualStyleBackColor = true; + this.buttonShowInfo.Click += new System.EventHandler(this.buttonShowInfo_Click); + // + // labelInfo + // + this.labelInfo.AutoSize = true; + this.labelInfo.Location = new System.Drawing.Point(13, 13); + this.labelInfo.Name = "labelInfo"; + this.labelInfo.Size = new System.Drawing.Size(148, 104); + this.labelInfo.TabIndex = 1; + this.labelInfo.Text = "Interne Programm Information:\r\n\r\n\r\n\r\n\r\n\r\n\r\nExterne Programm Information"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(450, 273); + this.Controls.Add(this.labelInfo); + this.Controls.Add(this.buttonShowInfo); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonShowInfo; + private System.Windows.Forms.Label labelInfo; + } +} + diff --git a/Test_ProgrammInfo/Form1.cs b/Test_ProgrammInfo/Form1.cs new file mode 100644 index 0000000..a333c83 --- /dev/null +++ b/Test_ProgrammInfo/Form1.cs @@ -0,0 +1,130 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Eugen.ESystem.Windows.Forms; + +namespace Test_ProgrammInfo +{ + public partial class Form1 : Form + { + #region Version und Copyright + // Version und Copyright + string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen + string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + string copyright = GenerateCopyright(); + string icon = Application.StartupPath + "\\Info.bmp"; + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + string date = value.ToShortDateString(); + string time = value.ToLongTimeString(); + private static DateTime AssemblyDateTime() + { + 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)); + //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original) + return buildDateTime; + } + + private static string CurrentYear() + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + + private static string StartYear() + { + //string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + //return startYear.Remove(0, startYear.LastIndexOf(" ") + 1); + string startYear = ""; + if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) + { + startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", ""); + while (startYear.StartsWith(" ")) + { + startYear = startYear.Remove(0, 1); + } + startYear = startYear.Remove(startYear.IndexOf(" ")); + return startYear; + } + else + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + } + + private static string GenerateCopyright() + { + string startYear = StartYear(); + string currentYear = CurrentYear(); + + if (startYear == currentYear) + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + else + { + //return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear); + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear)); + } + } + #endregion + + #region Programm-Info + /// + /// Contains the name of the program file + /// + public static string ProgramName { set; get; } + + /// + /// Contains the version of the program file + /// + public static string ProgramVersion { set; get; } + + /// + /// Contains the copyright notice + /// + public static string Copyright { set; get; } + + private void SetProgramInfo() + { + //Name, Version und Copyright setzen + ProgramName = programName; + ProgramVersion = programVersion; + Copyright = copyright; + } + #endregion + + public Form1() + { + SetProgramInfo(); + InitializeComponent(); + } + + private string InternalInfo() + { + return String.Concat(ProgramName, "\n\r", ProgramVersion, "\n\r", Copyright); + } + + private string ExternalInfo() + { + //var progInfo = new ProgramInfo(); + string x = ProgramInfo.ProgramName(); + return String.Concat(ProgramInfo.ProgramName(), "\n\r", ProgramInfo.ProgramVersion(), "\n\r", ProgramInfo.Copyright()); + } + + private void buttonShowInfo_Click(object sender, EventArgs e) + { + labelInfo.Text = string.Concat("Interne Information:\n\r\n\r", InternalInfo(), "\n\r\n\r\n\rExterne Information:\n\r", ExternalInfo()); + } + } +} diff --git a/Test_ProgrammInfo/Form1.resx b/Test_ProgrammInfo/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Test_ProgrammInfo/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/Test_ProgrammInfo/Program.cs b/Test_ProgrammInfo/Program.cs new file mode 100644 index 0000000..1c60393 --- /dev/null +++ b/Test_ProgrammInfo/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Test_ProgrammInfo +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Test_ProgrammInfo/ProgramInfo.cs b/Test_ProgrammInfo/ProgramInfo.cs new file mode 100644 index 0000000..128fc27 --- /dev/null +++ b/Test_ProgrammInfo/ProgramInfo.cs @@ -0,0 +1,97 @@ +using System; +using System.IO; +using System.Reflection; +using System.Windows.Forms; + +namespace Eugen.ESystem.Windows.Forms +{ + public class ProgramInfo + { + #region Version und Copyright + // Version und Copyright + static string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen + static string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + static string copyright = GenerateCopyright(); + string icon = Application.StartupPath + "\\Info.bmp"; + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + string date = value.ToShortDateString(); + string time = value.ToLongTimeString(); + private static DateTime AssemblyDateTime() + { + 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)); + //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original) + return buildDateTime; + } + + private static string CurrentYear() + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + + private static string StartYear() + { + string startYear = ""; + if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) + { + startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", ""); + while (startYear.StartsWith(" ")) + { + startYear = startYear.Remove(0, 1); + } + startYear = startYear.Remove(startYear.IndexOf(" ")); + return startYear; + } + else + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + } + + private static string GenerateCopyright() + { + string startYear = StartYear(); + string currentYear = CurrentYear(); + + if (startYear == currentYear) + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + else + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear)); + } + } + #endregion + + #region Program-Info + /// + /// Contains the name of the program file + /// + public static string ProgramName() + { + return programName; + } + + /// + /// Contains the version of the program file + /// + public static string ProgramVersion() + { + return programVersion; + } + + /// + /// Contains the copyright notice + /// + public static string Copyright() + { + return copyright; + } + #endregion + } +} diff --git a/Test_ProgrammInfo/Properties/AssemblyInfo.cs b/Test_ProgrammInfo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e652361 --- /dev/null +++ b/Test_ProgrammInfo/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("Test_ProgrammInfo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test_ProgrammInfo")] +[assembly: AssemblyCopyright("Copyright © 2020 by Eugen Höglinger")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("9b2836ec-5b07-4772-ada0-21f46ac9f4a6")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Test_ProgrammInfo/Properties/Resources.Designer.cs b/Test_ProgrammInfo/Properties/Resources.Designer.cs new file mode 100644 index 0000000..df25e39 --- /dev/null +++ b/Test_ProgrammInfo/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Test_ProgrammInfo.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_ProgrammInfo.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Test_ProgrammInfo/Properties/Resources.resx b/Test_ProgrammInfo/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Test_ProgrammInfo/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Test_ProgrammInfo/Properties/Settings.Designer.cs b/Test_ProgrammInfo/Properties/Settings.Designer.cs new file mode 100644 index 0000000..e6e1b7b --- /dev/null +++ b/Test_ProgrammInfo/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Test_ProgrammInfo.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Test_ProgrammInfo/Properties/Settings.settings b/Test_ProgrammInfo/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Test_ProgrammInfo/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Test_ProgrammInfo/Test_ProgrammInfo.csproj b/Test_ProgrammInfo/Test_ProgrammInfo.csproj new file mode 100644 index 0000000..32d81ac --- /dev/null +++ b/Test_ProgrammInfo/Test_ProgrammInfo.csproj @@ -0,0 +1,84 @@ + + + + + Debug + AnyCPU + {9B2836EC-5B07-4772-ADA0-21F46AC9F4A6} + WinExe + Test_ProgrammInfo + Test_ProgrammInfo + v4.7.2 + 512 + true + false + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe new file mode 100644 index 0000000..236a073 Binary files /dev/null and b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe differ diff --git a/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe.config b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.pdb b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.pdb new file mode 100644 index 0000000..a069adb Binary files /dev/null and b/Test_ProgrammInfo/bin/Debug/Test_ProgrammInfo.pdb differ diff --git a/Test_ProgrammInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/Test_ProgrammInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/Test_ProgrammInfo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..5c2c9a1 Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7842f61 Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Form1.resources b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Form1.resources differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Properties.Resources.resources b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.Properties.Resources.resources differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.CoreCompileInputs.cache b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b2eb578 --- /dev/null +++ b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +88b128c929085f887117dee45423fded40a93e52 diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.FileListAbsolute.txt b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..aef8f89 --- /dev/null +++ b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\bin\Debug\Test_ProgrammInfo.exe.config +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\bin\Debug\Test_ProgrammInfo.exe +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\bin\Debug\Test_ProgrammInfo.pdb +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.csprojAssemblyReference.cache +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.Properties.Resources.resources +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.csproj.GenerateResource.cache +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.exe +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.pdb +H:\Programmieren\Git-Repository\VisualStudio\2017\_TEST\Test_ProgrammInfo.git\Test_ProgrammInfo\obj\Debug\Test_ProgrammInfo.Form1.resources diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.GenerateResource.cache b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.GenerateResource.cache new file mode 100644 index 0000000..04161da Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csproj.GenerateResource.cache differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csprojAssemblyReference.cache b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csprojAssemblyReference.cache new file mode 100644 index 0000000..89b013e Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.csprojAssemblyReference.cache differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.exe b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.exe new file mode 100644 index 0000000..236a073 Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.exe differ diff --git a/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.pdb b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.pdb new file mode 100644 index 0000000..a069adb Binary files /dev/null and b/Test_ProgrammInfo/obj/Debug/Test_ProgrammInfo.pdb differ