commit b542aad134439c36f01806cb4d8d40e1fc1547b4 Author: Eugen Höglinger Date: Fri Jun 14 09:03:26 2024 +0200 Initialize - Funtion zum Aufteilen langer Texte in Teilstücke mit definierter Länge - Definition für Länge der ersten Zeile - Definition für Länge der nachfolgenden Zeilen oder Länge des Einzuges diff --git a/.vs/FormattingLongStrings.git/FileContentIndex/70343cc8-c795-4133-a343-56d2c22cf5e5.vsidx b/.vs/FormattingLongStrings.git/FileContentIndex/70343cc8-c795-4133-a343-56d2c22cf5e5.vsidx new file mode 100644 index 0000000..71f07a9 Binary files /dev/null and b/.vs/FormattingLongStrings.git/FileContentIndex/70343cc8-c795-4133-a343-56d2c22cf5e5.vsidx differ diff --git a/.vs/FormattingLongStrings.git/FileContentIndex/77edbc7b-9dd4-4a62-901f-2ccb0a0be232.vsidx b/.vs/FormattingLongStrings.git/FileContentIndex/77edbc7b-9dd4-4a62-901f-2ccb0a0be232.vsidx new file mode 100644 index 0000000..d68b695 Binary files /dev/null and b/.vs/FormattingLongStrings.git/FileContentIndex/77edbc7b-9dd4-4a62-901f-2ccb0a0be232.vsidx differ diff --git a/.vs/FormattingLongStrings.git/FileContentIndex/c3b903fb-e82b-4313-a822-279c4e91f56e.vsidx b/.vs/FormattingLongStrings.git/FileContentIndex/c3b903fb-e82b-4313-a822-279c4e91f56e.vsidx new file mode 100644 index 0000000..31385af Binary files /dev/null and b/.vs/FormattingLongStrings.git/FileContentIndex/c3b903fb-e82b-4313-a822-279c4e91f56e.vsidx differ diff --git a/.vs/FormattingLongStrings.git/v17/.suo b/.vs/FormattingLongStrings.git/v17/.suo new file mode 100644 index 0000000..8477664 Binary files /dev/null and b/.vs/FormattingLongStrings.git/v17/.suo differ diff --git a/.vs/FormattingLongStrings.git/v17/DocumentLayout.json b/.vs/FormattingLongStrings.git/v17/DocumentLayout.json new file mode 100644 index 0000000..88fcbc9 --- /dev/null +++ b/.vs/FormattingLongStrings.git/v17/DocumentLayout.json @@ -0,0 +1,84 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{243D4699-2C31-4F12-9B6F-1A9692BB60C2}|FormattingLongStrings\\FormattingLongStrings.csproj|c:\\cad\\git-workrepository\\visualstudio\\_dll\\formattinglongstrings.git\\formattinglongstrings\\formattinglongstrings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{243D4699-2C31-4F12-9B6F-1A9692BB60C2}|FormattingLongStrings\\FormattingLongStrings.csproj|solutionrelative:formattinglongstrings\\formattinglongstrings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{990D8654-0CFA-4009-A00D-1F8F95882D52}|HE-Test_Dll\\HE-Test_Dll.csproj|C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\he-test_dll\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{990D8654-0CFA-4009-A00D-1F8F95882D52}|HE-Test_Dll\\HE-Test_Dll.csproj|solutionrelative:he-test_dll\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{990D8654-0CFA-4009-A00D-1F8F95882D52}|HE-Test_Dll\\HE-Test_Dll.csproj|C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\he-test_dll\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{990D8654-0CFA-4009-A00D-1F8F95882D52}|HE-Test_Dll\\HE-Test_Dll.csproj|solutionrelative:he-test_dll\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 6, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}" + }, + { + "$type": "Bookmark", + "Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "Form1.cs", + "DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\HE-Test_Dll\\Form1.cs", + "RelativeDocumentMoniker": "HE-Test_Dll\\Form1.cs", + "ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\HE-Test_Dll\\Form1.cs", + "RelativeToolTip": "HE-Test_Dll\\Form1.cs", + "ViewState": "AQIAAH0AAAAAAAAAAAAtwJIAAAAMAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-06-13T12:40:23.851Z" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "Form1.cs [Entwurf]", + "DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\HE-Test_Dll\\Form1.cs", + "RelativeDocumentMoniker": "HE-Test_Dll\\Form1.cs", + "ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\HE-Test_Dll\\Form1.cs [Entwurf]", + "RelativeToolTip": "HE-Test_Dll\\Form1.cs [Entwurf]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-06-13T12:40:20.848Z" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "FormattingLongStrings.cs", + "DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\FormattingLongStrings\\FormattingLongStrings.cs", + "RelativeDocumentMoniker": "FormattingLongStrings\\FormattingLongStrings.cs", + "ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\FormattingLongStrings.git\\FormattingLongStrings\\FormattingLongStrings.cs", + "RelativeToolTip": "FormattingLongStrings\\FormattingLongStrings.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAH4AAAAmAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-06-13T12:36:20.553Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/FormattingLongStrings.git.sln b/FormattingLongStrings.git.sln new file mode 100644 index 0000000..3386ef3 --- /dev/null +++ b/FormattingLongStrings.git.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.34916.146 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormattingLongStrings", "FormattingLongStrings\FormattingLongStrings.csproj", "{243D4699-2C31-4F12-9B6F-1A9692BB60C2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HE-Test_Dll", "HE-Test_Dll\HE-Test_Dll.csproj", "{990D8654-0CFA-4009-A00D-1F8F95882D52}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {243D4699-2C31-4F12-9B6F-1A9692BB60C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {243D4699-2C31-4F12-9B6F-1A9692BB60C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {243D4699-2C31-4F12-9B6F-1A9692BB60C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {243D4699-2C31-4F12-9B6F-1A9692BB60C2}.Release|Any CPU.Build.0 = Release|Any CPU + {990D8654-0CFA-4009-A00D-1F8F95882D52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {990D8654-0CFA-4009-A00D-1F8F95882D52}.Debug|Any CPU.Build.0 = Debug|Any CPU + {990D8654-0CFA-4009-A00D-1F8F95882D52}.Release|Any CPU.ActiveCfg = Release|Any CPU + {990D8654-0CFA-4009-A00D-1F8F95882D52}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6DB22A4E-2B0C-46F0-9BB0-F405595B509A} + EndGlobalSection +EndGlobal diff --git a/FormattingLongStrings/FormattingLongStrings.cs b/FormattingLongStrings/FormattingLongStrings.cs new file mode 100644 index 0000000..d086ecc --- /dev/null +++ b/FormattingLongStrings/FormattingLongStrings.cs @@ -0,0 +1,263 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace Eugen.ESystem.Text +{ + public class FormattingLongStrings + { + #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); + } + + if (startYear.Contains("-")) + { + startYear = startYear.Remove(startYear.IndexOf("-")); + } + else + { + 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 + { + string temp = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + string start = temp.Remove(temp.IndexOf(startYear) - 1); + string end = (temp.Remove(0, temp.IndexOf(" by"))); + + return String.Concat(start, " ", startYear, "-", currentYear, end); + } + } + #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; } + + private static 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; + } + + protected string ProgramName { private set; get; } + protected string ProgramVersion { private set; get; } + protected string ProgramCopyright { private set; get; } + #endregion + + static FormattingLongStrings() + { + SetDllInfo(); + } + + //public FormattingLongStrings() + //{ + // SetDllInfo(); + //} + + /// + /// Defines the length type + /// + public enum LengthType + { + LineLength, + IndentLength + } + + /// + /// Splits a longer text into sections with a defined maximum length for each section + /// + /// Text to be edited + /// Length of the first line in characters + /// Length of the following line or the indentation in characters + /// Defines whether the line length or the indentation is measured + /// Returns a string array with individual lines + public static string[] FormattingString(string text, int lengthFirstLine, int lengthSubsequentLines, LengthType lengthType) + { + // If the text line is longer than the desired first line length, then split it, otherwise it is already ok + if (text.Length > lengthFirstLine) + { + lengthSubsequentLines = LengthSubsequentLines(lengthFirstLine, lengthSubsequentLines, lengthType); // The text length of the other lines is calculated + int indentLength = lengthFirstLine - lengthSubsequentLines; ; + + List lines = new List(); + + lines.Add(CreateLine(text, lengthFirstLine)); // Create the first line in the length of the first line + + text = ShortenStringByAlreadyUsed(text, lines[0]); // The text already used is removed from the text + + text = RemoveLeadingSpaces(text); // If the text line begins with a space, remove it + + string tempText = ""; + + // If the text line is longer than the desired line length, then split it + while (text.Length > lengthSubsequentLines) + { + tempText = CreateLine(text, lengthSubsequentLines); + + // Generate the other lines with the corresponding length + if (lengthType == LengthType.LineLength) + { + lines.Add(tempText); // If the line length of the additional lines + } + else + { + // Line length is the length of the first line minus the length of the indentation + // Spaces in the number of indents are placed in front of the text + lines.Add(tempText.PadLeft(indentLength + tempText.Length, ' ')); + } + + text = ShortenStringByAlreadyUsed(text, tempText); // The text already used is removed from the text + + text = RemoveLeadingSpaces(text); // If the text line begins with a space, remove it + } + + // If the text still contains characters, then edit + if (text.Length > 0) + { + if (lengthType == LengthType.LineLength) + { + lines.Add(text); // If the line type is 'Line length' then add + } + else + { + lines.Add(text.PadLeft(indentLength + text.Length, ' ')); // Otherwise, precede with a space and then add + } + } + + return lines.ToArray(); + } + else + { + string[] value = {text}; // If the text is shorter than the line length, then use it + return value; + } + } + + private static int LengthSubsequentLines(int lengthFirstLine, int lengthSubsequentLines, LengthType lengthType) + { + // Returns the length of the subsequent lines, depending on the line type + if (lengthType == LengthType.LineLength) + { + return lengthSubsequentLines; // Line length + } + else + { + return lengthFirstLine - lengthSubsequentLines; // Line length with indentation + } + } + + private static string CreateLine(string text, int lineLength) + { + // Returns a text section of the specified length + string tempLine = text.Remove(lineLength); + string tempRemainingLine = text.Remove(0, lineLength); + + // If the next part begins with a space, the line ends with a whole word + if (tempRemainingLine.StartsWith(" ")) + { + return tempLine; // Then use the line as it is + } + else + { + return tempLine.Remove(tempLine.LastIndexOf(" ")); // Otherwise shorten the line up to the last space + } + } + + private static string ShortenStringByAlreadyUsed(string text, string usedCharacters) + { + // Remove the piece of text used from the entire text + return text.Replace(usedCharacters, ""); + } + + private static string RemoveLeadingSpaces(string text) + { + // If the text line begins with a space, remove the space + while (text.StartsWith(" ")) + { + text = text.Remove(0, 1); + } + + return text; + } + } +} diff --git a/FormattingLongStrings/FormattingLongStrings.csproj b/FormattingLongStrings/FormattingLongStrings.csproj new file mode 100644 index 0000000..e41e12f --- /dev/null +++ b/FormattingLongStrings/FormattingLongStrings.csproj @@ -0,0 +1,48 @@ + + + + + Debug + AnyCPU + {243D4699-2C31-4F12-9B6F-1A9692BB60C2} + Library + Properties + Eugen.ESystem.Text + heformlost + 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/FormattingLongStrings/Properties/AssemblyInfo.cs b/FormattingLongStrings/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..37d28ac --- /dev/null +++ b/FormattingLongStrings/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("FormattingLongStrings")] +[assembly: AssemblyDescription("Formats a string to a defined line length")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FormattingLongStrings")] +[assembly: AssemblyCopyright("Copyright © 2024 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("243d4699-2c31-4f12-9b6f-1a9692bb60c2")] + +// 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")] //Wenn auskommentiert, dann gleich wie AssemblyVersion! diff --git a/FormattingLongStrings/bin/Debug/heformlost.dll b/FormattingLongStrings/bin/Debug/heformlost.dll new file mode 100644 index 0000000..303692e Binary files /dev/null and b/FormattingLongStrings/bin/Debug/heformlost.dll differ diff --git a/FormattingLongStrings/bin/Debug/heformlost.pdb b/FormattingLongStrings/bin/Debug/heformlost.pdb new file mode 100644 index 0000000..7fb5e1b Binary files /dev/null and b/FormattingLongStrings/bin/Debug/heformlost.pdb differ diff --git a/FormattingLongStrings/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/FormattingLongStrings/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/FormattingLongStrings/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/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..c5634ba Binary files /dev/null and b/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..0dcc9d4 Binary files /dev/null and b/FormattingLongStrings/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.AssemblyReference.cache b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.AssemblyReference.cache new file mode 100644 index 0000000..97c8c82 Binary files /dev/null and b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.AssemblyReference.cache differ diff --git a/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.CoreCompileInputs.cache b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..a7fc70e --- /dev/null +++ b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +357a7d43f154d686b8d30476e13f9731fd70e1dd526a0a4c91d3f509d941693f diff --git a/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.FileListAbsolute.txt b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e79c282 --- /dev/null +++ b/FormattingLongStrings/obj/Debug/FormattingLongStrings.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\obj\Debug\FormattingLongStrings.csproj.AssemblyReference.cache +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\obj\Debug\FormattingLongStrings.csproj.CoreCompileInputs.cache +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\bin\Debug\heformlost.dll +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\bin\Debug\heformlost.pdb +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\obj\Debug\heformlost.dll +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\FormattingLongStrings\obj\Debug\heformlost.pdb diff --git a/FormattingLongStrings/obj/Debug/heformlost.dll b/FormattingLongStrings/obj/Debug/heformlost.dll new file mode 100644 index 0000000..303692e Binary files /dev/null and b/FormattingLongStrings/obj/Debug/heformlost.dll differ diff --git a/FormattingLongStrings/obj/Debug/heformlost.pdb b/FormattingLongStrings/obj/Debug/heformlost.pdb new file mode 100644 index 0000000..7fb5e1b Binary files /dev/null and b/FormattingLongStrings/obj/Debug/heformlost.pdb differ diff --git a/HE-Test_Dll/App.config b/HE-Test_Dll/App.config new file mode 100644 index 0000000..ecdcf8a --- /dev/null +++ b/HE-Test_Dll/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/HE-Test_Dll/Form1.Designer.cs b/HE-Test_Dll/Form1.Designer.cs new file mode 100644 index 0000000..b1aee25 --- /dev/null +++ b/HE-Test_Dll/Form1.Designer.cs @@ -0,0 +1,194 @@ +namespace HE_Test_Dll +{ + 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.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.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.groupBoxProgramInfo.SuspendLayout(); + this.groupBoxDLLInfo.SuspendLayout(); + this.SuspendLayout(); + // + // buttonShowInfo + // + this.buttonShowInfo.Location = new System.Drawing.Point(12, 287); + this.buttonShowInfo.Name = "buttonShowInfo"; + this.buttonShowInfo.Size = new System.Drawing.Size(776, 23); + this.buttonShowInfo.TabIndex = 0; + this.buttonShowInfo.Text = "Start"; + this.buttonShowInfo.UseVisualStyleBackColor = true; + this.buttonShowInfo.Click += new System.EventHandler(this.buttonShowInfo_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(100, 13); + this.label1.TabIndex = 13; + this.label1.Text = "Unformatierter Text:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(12, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(28, 14); + this.label2.TabIndex = 14; + this.label2.Text = "..."; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(12, 67); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(163, 13); + this.label3.TabIndex = 15; + this.label3.Text = "Auf Zeilenlänge formatierter Text:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(12, 80); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(28, 14); + this.label4.TabIndex = 16; + this.label4.Text = "..."; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(12, 173); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(140, 13); + this.label5.TabIndex = 17; + this.label5.Text = "Auf Einzug formatierter Text:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.Location = new System.Drawing.Point(12, 186); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(28, 14); + this.label6.TabIndex = 18; + this.label6.Text = "..."; + // + // 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.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label4); + 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.buttonShowInfo); + this.Name = "Form1"; + this.Text = "Test_InfoBox"; + 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 buttonShowInfo; + 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; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + } +} + diff --git a/HE-Test_Dll/Form1.cs b/HE-Test_Dll/Form1.cs new file mode 100644 index 0000000..9c068dc --- /dev/null +++ b/HE-Test_Dll/Form1.cs @@ -0,0 +1,161 @@ +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.Text; + +namespace HE_Test_Dll +{ + 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 = System.Reflection.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 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(FormattingLongStrings.DllName, "\r\n", FormattingLongStrings.DllVersion, "\r\n", FormattingLongStrings.Copyright); // Zeigt die DLL-Information an + } + + private void buttonShowInfo_Click(object sender, EventArgs e) + { + // + // Diese Zeilen gehört in das Programm kopiert + // + // Aufruf des Informationsfensters + var info = new FormattingLongStrings(); + //info.ShowDialog(); + + // Text 1 + string text = "Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten"; + + label2.Text = text; + + // Text 2 + string newText1 = ""; + + foreach (string line in FormattingLongStrings.FormattingString(text, 80, 40, FormattingLongStrings.LengthType.LineLength)) + { + newText1 += line + "\n\r"; + } + + newText1 = newText1.Remove(newText1.Length - 2); + + label4.Text = newText1; + + // Text 3 + string newText2 = ""; + + foreach (string line in FormattingLongStrings.FormattingString(text, 80, 40, FormattingLongStrings.LengthType.IndentLength)) + { + newText2 += line + "\n\r"; + } + + newText2 = newText2.Remove(newText2.Length - 2); + + label6.Text = newText2; + // + // + } + } +} diff --git a/HE-Test_Dll/Form1.resx b/HE-Test_Dll/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/HE-Test_Dll/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/HE-Test_Dll/HE-Test_Dll.csproj b/HE-Test_Dll/HE-Test_Dll.csproj new file mode 100644 index 0000000..655f43f --- /dev/null +++ b/HE-Test_Dll/HE-Test_Dll.csproj @@ -0,0 +1,88 @@ + + + + + Debug + AnyCPU + {990D8654-0CFA-4009-A00D-1F8F95882D52} + WinExe + HE_Test_Dll + HE-Test_Dll + v4.7.2 + 512 + true + false + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\FormattingLongStrings\bin\Debug\heformlost.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/HE-Test_Dll/Program.cs b/HE-Test_Dll/Program.cs new file mode 100644 index 0000000..7e7ea8f --- /dev/null +++ b/HE-Test_Dll/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace HE_Test_Dll +{ + internal 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/HE-Test_Dll/Properties/AssemblyInfo.cs b/HE-Test_Dll/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..87f0ec2 --- /dev/null +++ b/HE-Test_Dll/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("HE_Test_Dll")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HE_Test_Dll")] +[assembly: AssemblyCopyright("Copyright © 2024 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("990d8654-0cfa-4009-a00d-1f8f95882d52")] + +// 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/HE-Test_Dll/Properties/Resources.Designer.cs b/HE-Test_Dll/Properties/Resources.Designer.cs new file mode 100644 index 0000000..d12015c --- /dev/null +++ b/HE-Test_Dll/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 falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +using System; + +namespace Properties +{ + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -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 /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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 (object.ReferenceEquals(resourceMan, null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, 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/HE-Test_Dll/Properties/Resources.resx b/HE-Test_Dll/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/HE-Test_Dll/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/HE-Test_Dll/Properties/Settings.Designer.cs b/HE-Test_Dll/Properties/Settings.Designer.cs new file mode 100644 index 0000000..7a134d5 --- /dev/null +++ b/HE-Test_Dll/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.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/HE-Test_Dll/Properties/Settings.settings b/HE-Test_Dll/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/HE-Test_Dll/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe new file mode 100644 index 0000000..675f35d Binary files /dev/null and b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe differ diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config new file mode 100644 index 0000000..ecdcf8a --- /dev/null +++ b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb b/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb new file mode 100644 index 0000000..cc18d9a Binary files /dev/null and b/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb differ diff --git a/HE-Test_Dll/bin/Debug/heformlost.dll b/HE-Test_Dll/bin/Debug/heformlost.dll new file mode 100644 index 0000000..303692e Binary files /dev/null and b/HE-Test_Dll/bin/Debug/heformlost.dll differ diff --git a/HE-Test_Dll/bin/Debug/heformlost.pdb b/HE-Test_Dll/bin/Debug/heformlost.pdb new file mode 100644 index 0000000..7fb5e1b Binary files /dev/null and b/HE-Test_Dll/bin/Debug/heformlost.pdb differ diff --git a/HE-Test_Dll/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/HE-Test_Dll/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/HE-Test_Dll/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/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..2d21f8d Binary files /dev/null and b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c067ed4 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_.1DB734D7.Up2Date b/HE-Test_Dll/obj/Debug/HE-Test_.1DB734D7.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.AssemblyReference.cache b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.AssemblyReference.cache new file mode 100644 index 0000000..ecb1a9f Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.AssemblyReference.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.CoreCompileInputs.cache b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..9548770 --- /dev/null +++ b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +2a12256ba70effd717dec8f7e64b0b3febba626f711677c6a8349507017a1c74 diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.FileListAbsolute.txt b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d79000d --- /dev/null +++ b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.FileListAbsolute.txt @@ -0,0 +1,13 @@ +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.AssemblyReference.cache +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE_Test_Dll.Form1.resources +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE_Test_Dll.Properties.Resources.resources +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.GenerateResource.cache +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.CoreCompileInputs.cache +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe.config +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.pdb +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\bin\Debug\heformlost.dll +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\bin\Debug\heformlost.pdb +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_.1DB734D7.Up2Date +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.exe +C:\CAD\Git-WorkRepository\VisualStudio\_DLL\FormattingLongStrings.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.pdb diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.GenerateResource.cache b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.GenerateResource.cache new file mode 100644 index 0000000..4b70afb Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.csproj.GenerateResource.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe b/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe new file mode 100644 index 0000000..675f35d Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb b/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb new file mode 100644 index 0000000..cc18d9a Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb differ diff --git a/HE-Test_Dll/obj/Debug/HE_Test_Dll.Form1.resources b/HE-Test_Dll/obj/Debug/HE_Test_Dll.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE_Test_Dll.Form1.resources differ diff --git a/HE-Test_Dll/obj/Debug/HE_Test_Dll.Properties.Resources.resources b/HE-Test_Dll/obj/Debug/HE_Test_Dll.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE_Test_Dll.Properties.Resources.resources differ diff --git a/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..fc1a233 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ