commit f4b33a55ad50fa6db3752844f1895dfed0e9d3ed Author: Eugen Höglinger Date: Wed May 12 16:40:23 2021 +0200 Initialized diff --git a/.vs/RemoveLeadingTrailingCharacter.git/v16/.suo b/.vs/RemoveLeadingTrailingCharacter.git/v16/.suo new file mode 100644 index 0000000..abfc13d Binary files /dev/null and b/.vs/RemoveLeadingTrailingCharacter.git/v16/.suo differ diff --git a/RemoveLeadingTrailingCharacter.git.sln b/RemoveLeadingTrailingCharacter.git.sln new file mode 100644 index 0000000..a072c62 --- /dev/null +++ b/RemoveLeadingTrailingCharacter.git.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31205.134 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RemoveLeadingTrailingCharacter", "RemoveLeadingTrailingCharacter\RemoveLeadingTrailingCharacter.csproj", "{5F7190E6-4B75-4112-ADD5-FFAFB692D297}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test-RemoveLeadingTrailingCharacter", "Test-RemoveLeadingTrailingCharacter\Test-RemoveLeadingTrailingCharacter.csproj", "{267FB899-7CC3-4330-8A6F-09AC0D07398A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5F7190E6-4B75-4112-ADD5-FFAFB692D297}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5F7190E6-4B75-4112-ADD5-FFAFB692D297}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5F7190E6-4B75-4112-ADD5-FFAFB692D297}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5F7190E6-4B75-4112-ADD5-FFAFB692D297}.Release|Any CPU.Build.0 = Release|Any CPU + {267FB899-7CC3-4330-8A6F-09AC0D07398A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {267FB899-7CC3-4330-8A6F-09AC0D07398A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {267FB899-7CC3-4330-8A6F-09AC0D07398A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {267FB899-7CC3-4330-8A6F-09AC0D07398A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BA9E3D99-CC6F-4EF7-9407-CB7AAA1E4CA1} + EndGlobalSection +EndGlobal diff --git a/RemoveLeadingTrailingCharacter/Properties/AssemblyInfo.cs b/RemoveLeadingTrailingCharacter/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0ebb701 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/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("RemoveLeadingTrailingCharacter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RemoveLeadingTrailingCharacter")] +[assembly: AssemblyCopyright("Copyright © 2021 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("5f7190e6-4b75-4112-add5-ffafb692d297")] + +// 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/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.cs b/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.cs new file mode 100644 index 0000000..d0046b4 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Eugen.ESystem +{ + public static class RemoveLeadingTrailingCharacter + { + #region Version und Copyright + // Version und Copyright + 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 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + static string copyright = GenerateCopyright(); + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + static string date = value.ToShortDateString(); + static 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 DLL-Info + /// + /// Contains the name of the dll file. + /// + public static string DllName { private set; get; } + + /// + /// Contains the version of the dll file. + /// + public static string DllVersion { private set; get; } + + /// + /// Contains the copyright notice. + /// + public static string Copyright { private set; get; } + + /// + /// Contains the name-, version- and copyright-information of the dll file. + /// + public static string[] DllInfo { private set; get; } + + static private void SetDllInfo() + { + //Name, Version und Copyright setzen + DllName = dllName; + DllVersion = dllVersion; + Copyright = copyright; + + string[] dllInfo = new string[3]; + dllInfo[0] = dllName; + dllInfo[1] = dllVersion; + dllInfo[2] = copyright; + DllInfo = dllInfo; + } + #endregion + + /// + /// Removes leading or trailing characters + /// + static RemoveLeadingTrailingCharacter() + { + SetDllInfo(); + } + + /// + /// Removes leading characters + /// + /// String with leading characters. + /// Leading character which should be removed. + /// String without leading characters. + public static string RemoveLeadingCharacter(string text, char[] character) + { + return text.TrimStart(character); + } + + /// + /// Removes trailing characters + /// + /// String with trailing characters. + /// Trailing character which should be removed. + /// String without trailing characters. + public static string RemoveTrailingCharacter(string text, char[] character) + { + return text.TrimEnd(character); + } + + /// + /// Removes leading and trailing characters. + /// + /// String with leading and trailing characters. + /// Character which should be removed. + /// String without leading and trailing characters. + public static string RemoveLeadingAndTrailingCharacter(string text, char[] character) + { + return text.Trim(character); + } + } +} diff --git a/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.csproj b/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.csproj new file mode 100644 index 0000000..2900a4b --- /dev/null +++ b/RemoveLeadingTrailingCharacter/RemoveLeadingTrailingCharacter.csproj @@ -0,0 +1,50 @@ + + + + + Debug + AnyCPU + {5F7190E6-4B75-4112-ADD5-FFAFB692D297} + Library + Properties + RemoveLeadingTrailingCharacter + herltch + v4.6.1 + 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/RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll b/RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll new file mode 100644 index 0000000..2e200ad Binary files /dev/null and b/RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll differ diff --git a/RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb b/RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb new file mode 100644 index 0000000..202c4ab Binary files /dev/null and b/RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb differ diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs b/RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs new file mode 100644 index 0000000..3aa5318 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")] diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/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/RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..02d5246 Binary files /dev/null and b/RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache b/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..c0a58b7 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +2c291ddd04b81a92639ba9e7cdfdd1fe3ef0a596 diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt b/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6fd8064 --- /dev/null +++ b/RemoveLeadingTrailingCharacter/obj/Debug/RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\RemoveLeadingTrailingCharacter\obj\Debug\RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\RemoveLeadingTrailingCharacter\bin\Debug\herltch.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\RemoveLeadingTrailingCharacter\bin\Debug\herltch.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\RemoveLeadingTrailingCharacter\obj\Debug\herltch.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\RemoveLeadingTrailingCharacter\obj\Debug\herltch.pdb diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/herltch.dll b/RemoveLeadingTrailingCharacter/obj/Debug/herltch.dll new file mode 100644 index 0000000..2e200ad Binary files /dev/null and b/RemoveLeadingTrailingCharacter/obj/Debug/herltch.dll differ diff --git a/RemoveLeadingTrailingCharacter/obj/Debug/herltch.pdb b/RemoveLeadingTrailingCharacter/obj/Debug/herltch.pdb new file mode 100644 index 0000000..202c4ab Binary files /dev/null and b/RemoveLeadingTrailingCharacter/obj/Debug/herltch.pdb differ diff --git a/Test-RemoveLeadingTrailingCharacter/App.config b/Test-RemoveLeadingTrailingCharacter/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test-RemoveLeadingTrailingCharacter/Form1.Designer.cs b/Test-RemoveLeadingTrailingCharacter/Form1.Designer.cs new file mode 100644 index 0000000..f74b2ec --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Form1.Designer.cs @@ -0,0 +1,156 @@ + +namespace Test_RemoveLeadingTrailingCharacter +{ + 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.buttonRunProgram = new System.Windows.Forms.Button(); + this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox(); + this.labelProgramInfo = new System.Windows.Forms.Label(); + this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox(); + this.labelDLLInfo = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.groupBoxProgramInfo.SuspendLayout(); + this.groupBoxDLLInfo.SuspendLayout(); + this.SuspendLayout(); + // + // buttonRunProgram + // + this.buttonRunProgram.Location = new System.Drawing.Point(12, 287); + this.buttonRunProgram.Name = "buttonRunProgram"; + this.buttonRunProgram.Size = new System.Drawing.Size(776, 23); + this.buttonRunProgram.TabIndex = 0; + this.buttonRunProgram.Text = "Programm ausführen"; + this.buttonRunProgram.UseVisualStyleBackColor = true; + this.buttonRunProgram.Click += new System.EventHandler(this.buttonRunProgram_Click); + // + // groupBoxProgramInfo + // + this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo); + this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372); + this.groupBoxProgramInfo.Name = "groupBoxProgramInfo"; + this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66); + this.groupBoxProgramInfo.TabIndex = 11; + this.groupBoxProgramInfo.TabStop = false; + this.groupBoxProgramInfo.Text = "Programm Information"; + // + // labelProgramInfo + // + this.labelProgramInfo.AutoSize = true; + this.labelProgramInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.labelProgramInfo.Location = new System.Drawing.Point(7, 20); + this.labelProgramInfo.Name = "labelProgramInfo"; + this.labelProgramInfo.Size = new System.Drawing.Size(16, 13); + this.labelProgramInfo.TabIndex = 0; + this.labelProgramInfo.Text = "..."; + // + // groupBoxDLLInfo + // + this.groupBoxDLLInfo.Controls.Add(this.labelDLLInfo); + this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372); + this.groupBoxDLLInfo.Name = "groupBoxDLLInfo"; + this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66); + this.groupBoxDLLInfo.TabIndex = 12; + this.groupBoxDLLInfo.TabStop = false; + this.groupBoxDLLInfo.Text = "DLL Information"; + // + // labelDLLInfo + // + this.labelDLLInfo.AutoSize = true; + this.labelDLLInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.labelDLLInfo.Location = new System.Drawing.Point(7, 20); + this.labelDLLInfo.Name = "labelDLLInfo"; + this.labelDLLInfo.Size = new System.Drawing.Size(16, 13); + this.labelDLLInfo.TabIndex = 0; + this.labelDLLInfo.Text = "..."; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(260, 13); + this.label1.TabIndex = 13; + this.label1.Text = "***Das ist ein Test*** ohne führende Sternchen ergibt:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(283, 13); + this.label2.TabIndex = 14; + this.label2.Text = "***Das ist ein Test*** ohne nachlaufende Sternchen ergibt:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(13, 47); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(215, 13); + this.label3.TabIndex = 15; + this.label3.Text = "***Das ist ein Test*** ohne Sternchen ergibt:"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.groupBoxProgramInfo); + this.Controls.Add(this.groupBoxDLLInfo); + this.Controls.Add(this.buttonRunProgram); + this.Name = "Form1"; + this.Text = "Test_RemoveLeadingTrailingCharacter"; + this.Load += new System.EventHandler(this.Form1_Load); + this.groupBoxProgramInfo.ResumeLayout(false); + this.groupBoxProgramInfo.PerformLayout(); + this.groupBoxDLLInfo.ResumeLayout(false); + this.groupBoxDLLInfo.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonRunProgram; + private System.Windows.Forms.GroupBox groupBoxProgramInfo; + private System.Windows.Forms.Label labelProgramInfo; + private System.Windows.Forms.GroupBox groupBoxDLLInfo; + private System.Windows.Forms.Label labelDLLInfo; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + } +} + diff --git a/Test-RemoveLeadingTrailingCharacter/Form1.cs b/Test-RemoveLeadingTrailingCharacter/Form1.cs new file mode 100644 index 0000000..46009b9 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Form1.cs @@ -0,0 +1,133 @@ +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; + +namespace Test_RemoveLeadingTrailingCharacter +{ + 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 = ""; + 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 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 void Form1_Load(object sender, EventArgs e) + { + labelProgramInfo.Text = String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", Copyright); // Zeigt die Programm-Information an + + labelDLLInfo.Text = String.Concat(RemoveLeadingTrailingCharacter.DllName, "\r\n", RemoveLeadingTrailingCharacter.DllVersion, "\r\n", RemoveLeadingTrailingCharacter.Copyright); // Zeigt die DLL-Information an + } + + private void buttonRunProgram_Click(object sender, EventArgs e) + { + // + // Code der ins eigene Programm kopiert werden kann + // + string text = "***Das ist ein Test***"; + char[] character = { '*' }; + + label1.Text = String.Concat("***Das ist ein Test*** ohne führende Sternchen ergibt: ", RemoveLeadingTrailingCharacter.RemoveLeadingCharacter(text, character)); + label2.Text = String.Concat("***Das ist ein Test*** ohne nachlaufende Sternchen ergibt: ", RemoveLeadingTrailingCharacter.RemoveTrailingCharacter(text, character)); + label3.Text = String.Concat("***Das ist ein Test*** ohne Sternchen ergibt: ", RemoveLeadingTrailingCharacter.RemoveLeadingAndTrailingCharacter(text, character)); + // + // Ende + // + } + } +} diff --git a/Test-RemoveLeadingTrailingCharacter/Form1.resx b/Test-RemoveLeadingTrailingCharacter/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/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-RemoveLeadingTrailingCharacter/Program.cs b/Test-RemoveLeadingTrailingCharacter/Program.cs new file mode 100644 index 0000000..8ebe25c --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/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_RemoveLeadingTrailingCharacter +{ + 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-RemoveLeadingTrailingCharacter/Properties/AssemblyInfo.cs b/Test-RemoveLeadingTrailingCharacter/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c0b21bc --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/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_InfoBox")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test_InfoBox")] +[assembly: AssemblyCopyright("Copyright © 2021 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("267fb899-7cc3-4330-8a6f-09ac0d07398a")] + +// 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, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.*")] +//[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Test-RemoveLeadingTrailingCharacter/Properties/Resources.Designer.cs b/Test-RemoveLeadingTrailingCharacter/Properties/Resources.Designer.cs new file mode 100644 index 0000000..8f9d6d2 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// 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_RemoveLeadingTrailingCharacter.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_RemoveLeadingTrailingCharacter.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-RemoveLeadingTrailingCharacter/Properties/Resources.resx b/Test-RemoveLeadingTrailingCharacter/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/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-RemoveLeadingTrailingCharacter/Properties/Settings.Designer.cs b/Test-RemoveLeadingTrailingCharacter/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9ed088d --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// 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_RemoveLeadingTrailingCharacter.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-RemoveLeadingTrailingCharacter/Properties/Settings.settings b/Test-RemoveLeadingTrailingCharacter/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Test-RemoveLeadingTrailingCharacter/Test-RemoveLeadingTrailingCharacter.csproj b/Test-RemoveLeadingTrailingCharacter/Test-RemoveLeadingTrailingCharacter.csproj new file mode 100644 index 0000000..3daed47 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/Test-RemoveLeadingTrailingCharacter.csproj @@ -0,0 +1,86 @@ + + + + + Debug + AnyCPU + {267FB899-7CC3-4330-8A6F-09AC0D07398A} + WinExe + Test_RemoveLeadingTrailingCharacter + Test-RemoveLeadingTrailingCharacter + v4.6.1 + 512 + true + false + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\RemoveLeadingTrailingCharacter\bin\Debug\herltch.dll + + + + + + + + + + + + + + + + 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-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe new file mode 100644 index 0000000..785025e Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe differ diff --git a/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe.config b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.pdb b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.pdb new file mode 100644 index 0000000..1465c4b Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/bin/Debug/Test-RemoveLeadingTrailingCharacter.pdb differ diff --git a/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll b/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll new file mode 100644 index 0000000..2e200ad Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.dll differ diff --git a/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb b/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb new file mode 100644 index 0000000..202c4ab Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/bin/Debug/herltch.pdb differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs b/Test-RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs new file mode 100644 index 0000000..3aa5318 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/obj/Debug/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")] diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..5c67ca9 Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f040e89 Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.CopyComplete b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..70b5257 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +0d7c77d648a4ac80ebd847ae7f1169d78158493c diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d7c6420 --- /dev/null +++ b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.FileListAbsolute.txt @@ -0,0 +1,13 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.csprojAssemblyReference.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test_RemoveLeadingTrailingCharacter.Form1.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test_RemoveLeadingTrailingCharacter.Properties.Resources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.csproj.GenerateResource.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\bin\Debug\Test-RemoveLeadingTrailingCharacter.exe.config +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\bin\Debug\Test-RemoveLeadingTrailingCharacter.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\bin\Debug\Test-RemoveLeadingTrailingCharacter.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.csproj.CopyComplete +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\obj\Debug\Test-RemoveLeadingTrailingCharacter.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\bin\Debug\herltch.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\RemoveLeadingTrailingCharacter.git\Test-RemoveLeadingTrailingCharacter\bin\Debug\herltch.pdb diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.GenerateResource.cache b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.GenerateResource.cache new file mode 100644 index 0000000..2d9561d Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csproj.GenerateResource.cache differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csprojAssemblyReference.cache b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csprojAssemblyReference.cache new file mode 100644 index 0000000..b5b6966 Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.csprojAssemblyReference.cache differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.exe b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.exe new file mode 100644 index 0000000..785025e Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.exe differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.pdb b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.pdb new file mode 100644 index 0000000..1465c4b Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test-RemoveLeadingTrailingCharacter.pdb differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Form1.resources b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Form1.resources differ diff --git a/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Properties.Resources.resources b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test-RemoveLeadingTrailingCharacter/obj/Debug/Test_RemoveLeadingTrailingCharacter.Properties.Resources.resources differ