Initialize

- Funktion zum Auslesen der Elemente einer XML Datei
This commit is contained in:
Eugen Höglinger 2022-12-07 13:18:37 +01:00
parent efa27c0ea5
commit afc1be5b5b
86 changed files with 851 additions and 205 deletions

Binary file not shown.

View File

@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385 VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_LoadXMLFile", "Test_LoadXMLFile\Test_LoadXMLFile.csproj", "{29511763-82C2-4FF7-8D59-3287ACE8194C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoadXMLFile", "LoadXMLFile\LoadXMLFile.csproj", "{29511763-82C2-4FF7-8D59-3287ACE8194C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_LoadXMLFile", "Test_LoadXMLFile\Test_LoadXMLFile.csproj", "{3683B887-8256-414A-B502-0F6B7088654D}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -15,6 +17,10 @@ Global
{29511763-82C2-4FF7-8D59-3287ACE8194C}.Debug|Any CPU.Build.0 = Debug|Any CPU {29511763-82C2-4FF7-8D59-3287ACE8194C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{29511763-82C2-4FF7-8D59-3287ACE8194C}.Release|Any CPU.ActiveCfg = Release|Any CPU {29511763-82C2-4FF7-8D59-3287ACE8194C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{29511763-82C2-4FF7-8D59-3287ACE8194C}.Release|Any CPU.Build.0 = Release|Any CPU {29511763-82C2-4FF7-8D59-3287ACE8194C}.Release|Any CPU.Build.0 = Release|Any CPU
{3683B887-8256-414A-B502-0F6B7088654D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3683B887-8256-414A-B502-0F6B7088654D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3683B887-8256-414A-B502-0F6B7088654D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3683B887-8256-414A-B502-0F6B7088654D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

6
LoadXMLFile/App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
@ -9,11 +10,106 @@ using System.Xml;
using System.Xml.Linq; using System.Xml.Linq;
using System.Xml.XPath; using System.Xml.XPath;
//namespace Eugen.ESystem.Windows.Forms namespace Eugen.ESystem.IO
namespace Test_LoadXMLFile
{ {
internal class LoadXML public class LoadXMLFile
{ {
#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();
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 DLL-Info
/// <summary>
/// Contains the name of the program file
/// </summary>
public static string DllName { set; get; }
/// <summary>
/// Contains the version of the program file
/// </summary>
public static string DllVersion { set; get; }
/// <summary>
/// Contains the copyright notice
/// </summary>
public static string Copyright { set; get; }
private static void SetDllInfo()
{
//Name, Version und Copyright setzen
DllName = dllName;
DllVersion = dllVersion;
Copyright = copyright;
}
#endregion
static LoadXMLFile()
{
SetDllInfo(); //Name, Version und Copyright der DLL setzen
}
public LoadXMLFile()
{
SetDllInfo();
}
public enum LoadAll public enum LoadAll
{ {
No, No,
@ -35,6 +131,7 @@ namespace Test_LoadXMLFile
// Das Dokument in eine neue XElement-Instanz laden // Das Dokument in eine neue XElement-Instanz laden
XElement rootElement = XElement.Load(FileName); XElement rootElement = XElement.Load(FileName);
//Nur wenn das 'rootElement' so beginnt wie 'Topi' heißt oder 'LoadAllValues' 'Yes' ist, dann die Elemente laden
if (rootElement.ToString().Remove(rootElement.ToString().IndexOf(" ")) == "<" + Topic || LoadAllValues == LoadAll.Yes) if (rootElement.ToString().Remove(rootElement.ToString().IndexOf(" ")) == "<" + Topic || LoadAllValues == LoadAll.Yes)
{ {
// Auflistung für die Gruppe erzeugen // Auflistung für die Gruppe erzeugen
@ -54,7 +151,7 @@ namespace Test_LoadXMLFile
foreach (var groupElement in groupElements) foreach (var groupElement in groupElements)
{ {
//Nur wenn das 'groupElement' so beginnt wie 'Group' heißt, dann laden //Nur wenn das 'groupElement' so beginnt wie 'Group' heißt oder 'LoadAllValues' 'Yes' ist, dann die Elemente laden
if (groupElement.ToString().Remove(groupElement.ToString().IndexOf(" ")) == "<" + Group || LoadAllValues == LoadAll.Yes) if (groupElement.ToString().Remove(groupElement.ToString().IndexOf(" ")) == "<" + Group || LoadAllValues == LoadAll.Yes)
{ {
temp = groupElement.ToString().Split(' '); temp = groupElement.ToString().Split(' ');
@ -106,7 +203,7 @@ namespace Test_LoadXMLFile
{ {
foreach (var groupElement in groupElements) foreach (var groupElement in groupElements)
{ {
//Nur wenn das 'groupElement' so beginnt wie 'Group' heißt, dann laden //Nur wenn das 'groupElement' so beginnt wie 'Group' heißt oder 'LoadAllValues' 'Yes' ist, dann die Elemente laden
if (groupElement.ToString().Remove(groupElement.ToString().IndexOf(" ")) == "<" + Group || LoadAllValues == LoadAll.Yes) if (groupElement.ToString().Remove(groupElement.ToString().IndexOf(" ")) == "<" + Group || LoadAllValues == LoadAll.Yes)
{ {
//Neue Gruppe erzeugen und in der Auflistung ablegen //Neue Gruppe erzeugen und in der Auflistung ablegen

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{29511763-82C2-4FF7-8D59-3287ACE8194C}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>LoadXMLFile</RootNamespace>
<AssemblyName>heloxmlf</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="LoadXMLFile.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

22
LoadXMLFile/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Eugen.ESystem.IO
{
internal static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -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("LoadXMLFile")]
[assembly: AssemblyDescription("Loads elements from a XML file")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LoadXMLFile")]
[assembly: AssemblyCopyright("Copyright © 2022 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("29511763-82c2-4ff7-8d59-3287ace8194c")]
// 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")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test_LoadXMLFile.Properties
{
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// 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()
{
}
/// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary>
[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_LoadXMLFile.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test_LoadXMLFile.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;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
e94fc1e129764f082778c7e8cafebf8283f02707

View File

@ -0,0 +1,9 @@
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\LoadXMLFile.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\LoadXMLFile.Properties.Resources.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\LoadXMLFile.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\LoadXMLFile.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\bin\Debug\heloxmlf.dll.config
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\bin\Debug\heloxmlf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\bin\Debug\heloxmlf.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\heloxmlf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\LoadXMLFile\obj\Debug\heloxmlf.pdb

View File

@ -0,0 +1 @@
obj\Debug\\_IsIncrementalBuild

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

View File

@ -28,27 +28,73 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.buttonStart = new System.Windows.Forms.Button(); 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.labelResult = new System.Windows.Forms.Label(); this.labelResult = new System.Windows.Forms.Label();
this.groupBoxProgramInfo.SuspendLayout();
this.groupBoxDLLInfo.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonStart // buttonShowInfo
// //
this.buttonStart.Location = new System.Drawing.Point(13, 13); this.buttonShowInfo.Location = new System.Drawing.Point(12, 287);
this.buttonStart.Name = "buttonStart"; this.buttonShowInfo.Name = "buttonShowInfo";
this.buttonStart.Size = new System.Drawing.Size(75, 23); this.buttonShowInfo.Size = new System.Drawing.Size(776, 23);
this.buttonStart.TabIndex = 0; this.buttonShowInfo.TabIndex = 0;
this.buttonStart.Text = "Start"; this.buttonShowInfo.Text = "Load XML File and show elements";
this.buttonStart.UseVisualStyleBackColor = true; this.buttonShowInfo.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click); 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 = "...";
// //
// labelResult // labelResult
// //
this.labelResult.AutoSize = true; this.labelResult.AutoSize = true;
this.labelResult.Location = new System.Drawing.Point(13, 43); this.labelResult.Location = new System.Drawing.Point(12, 13);
this.labelResult.Name = "labelResult"; this.labelResult.Name = "labelResult";
this.labelResult.Size = new System.Drawing.Size(16, 13); this.labelResult.Size = new System.Drawing.Size(16, 13);
this.labelResult.TabIndex = 1; this.labelResult.TabIndex = 13;
this.labelResult.Text = "..."; this.labelResult.Text = "...";
// //
// Form1 // Form1
@ -57,9 +103,16 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.labelResult); this.Controls.Add(this.labelResult);
this.Controls.Add(this.buttonStart); this.Controls.Add(this.groupBoxProgramInfo);
this.Controls.Add(this.groupBoxDLLInfo);
this.Controls.Add(this.buttonShowInfo);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "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.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -67,7 +120,11 @@
#endregion #endregion
private System.Windows.Forms.Button buttonStart; 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 labelResult; private System.Windows.Forms.Label labelResult;
} }
} }

View File

@ -3,29 +3,130 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Eugen.ESystem.IO;
using static Eugen.ESystem.IO.LoadXMLFile;
namespace Test_LoadXMLFile namespace Test_LoadXMLFile
{ {
public partial class Form1 : Form 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
/// <summary>
/// Contains the name of the program file
/// </summary>
public static string ProgramName { set; get; }
/// <summary>
/// Contains the version of the program file
/// </summary>
public static string ProgramVersion { set; get; }
/// <summary>
/// Contains the copyright notice
/// </summary>
public static string Copyright { set; get; }
private void SetProgramInfo()
{
//Name, Version und Copyright setzen
ProgramName = programName;
ProgramVersion = programVersion;
Copyright = copyright;
}
#endregion
public Form1() public Form1()
{ {
SetProgramInfo();
InitializeComponent(); InitializeComponent();
} }
private void buttonStart_Click(object sender, EventArgs e) private void Form1_Load(object sender, EventArgs e)
{ {
var load = new LoadXML(); labelProgramInfo.Text = String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", Copyright); // Zeigt die Programm-Information an
labelDLLInfo.Text = String.Concat(LoadXMLFile.DllName, "\r\n", LoadXMLFile.DllVersion, "\r\n", LoadXMLFile.Copyright); // Zeigt die DLL-Information an
}
private void buttonShowInfo_Click(object sender, EventArgs e)
{
var load = new LoadXMLFile();
load.FileName = @"C:\Temp\Test\Test.xml"; load.FileName = @"C:\Temp\Test\Test.xml";
load.Topic = "NX-Portal"; load.Topic = "NX-Portal";
load.Group = "Management"; load.Group = "Management";
load.Key = "Method"; load.Key = "Method";
//load.LoadAllValues = LoadXML.LoadAll.Yes; //load.LoadAllValues = LoadXMLFile.LoadAll.Yes; //Es werden alle Elemente geladen
load.LoadAllValues = LoadXML.LoadAll.No; load.LoadAllValues = LoadXMLFile.LoadAll.No; //Es werden nur die Elemente geladen, die unter 'Group' gespeichert sind
load.Load(); load.Load();
if (load.Values != null) if (load.Values != null)

View File

@ -1,95 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Test_LoadXMLFile
{
internal class LoadXML
{
public string FileName { get; set; }
public string Topic { get; set; } //z.B. "NX-Portal"
public string Group { get; set; } //z.B. "NX"
public string Key { get; set; } //z.B. "Version"
public string[,] Values { get; set; } //z.B. "NX 1953"
public int Standard { get; set; } //z.B. "2"
public void Load()
{
// Das Dokument in eine neue XElement-Instanz laden
XElement rootElement = XElement.Load(FileName);
if (rootElement.ToString().Remove(rootElement.ToString().IndexOf(" ")) == "<" + Topic)
{
// Auflistung für die Gruppe erzeugen
List<Topics> groups = new List<Topics>();
//Alle groups-Elemente einlesen und durchgehen
//var personElements = rootElement.Elements(Group);
var groupElements = rootElement.Elements();
foreach (var groupElement in groupElements)
{
//Nur wenn das 'groupElement' so beginnt wie 'Group' heißt, dann laden
if (groupElement.ToString().Remove(groupElement.ToString().IndexOf(" ")) == "<" + Group)
{
//Neue Gruppe erzeugen und in der Auflistung ablegen
Topics group = new Topics();
groups.Add(group);
//Das Attribut id einlesen
XAttribute idAttribute = groupElement.Attribute("Id");
if (idAttribute != null)
{
group.Id = idAttribute.Value;
}
//Key-Element suchen und speichern
XAttribute keyAttribut = groupElement.Attribute(Key);
if (keyAttribut != null)
{
group.Key = keyAttribut.Value;
}
//Standard-Element suchen und speichern
XAttribute standardAttribut = groupElement.Attribute("Standard");
if (standardAttribut != null)
{
group.Standard = standardAttribut.Value;
}
DataPreperation(groups);
}
}
}
else
{
Values = null;
}
}
private void DataPreperation(List<Topics> groups)
{
string[,] values = new string[groups.Count, 3];
for (int i = 0; i < groups.Count; i++)
{
values[i,0] = groups[i].Id;
values[i,1] = groups[i].Key;
values[i, 2] = groups[i].Standard;
}
Values = values;
}
}
class Topics
{
public string Id;
public string Key;
public string Standard;
}
}

View File

@ -6,7 +6,7 @@ using System.Windows.Forms;
namespace Test_LoadXMLFile namespace Test_LoadXMLFile
{ {
internal static class Program static class Program
{ {
/// <summary> /// <summary>
/// Der Haupteinstiegspunkt für die Anwendung. /// Der Haupteinstiegspunkt für die Anwendung.

View File

@ -8,9 +8,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Test_LoadXMLFile")] [assembly: AssemblyTitle("Test_LoadXMLFile")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ENGEL")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Test_LoadXMLFile")] [assembly: AssemblyProduct("Test_LoadXMLFile")]
[assembly: AssemblyCopyright("Copyright © ENGEL 2022")] [assembly: AssemblyCopyright("Copyright © 2022 by Eugen Höglinger")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("29511763-82c2-4ff7-8d59-3287ace8194c")] [assembly: Guid("3683b887-8256-414a-b502-0f6b7088654d")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
// //
@ -30,7 +30,7 @@ using System.Runtime.InteropServices;
// Revision // Revision
// //
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -3,48 +3,43 @@
// Dieser Code wurde von einem Tool generiert. // Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000 // Laufzeitversion:4.0.30319.42000
// //
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code neu generiert wird. // der Code erneut generiert wird.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Test_LoadXMLFile.Properties namespace Test_Info.Properties {
{ using System;
/// <summary> /// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary> /// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// über ein Tool wie ResGen oder Visual Studio 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 // 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. // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources {
{
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources() {
{
} }
/// <summary> /// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager {
{ get {
get if (object.ReferenceEquals(resourceMan, null)) {
{ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_Info.Properties.Resources", typeof(Resources).Assembly);
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_LoadXMLFile.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
@ -53,17 +48,14 @@ namespace Test_LoadXMLFile.Properties
/// <summary> /// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture {
{ get {
get
{
return resourceCulture; return resourceCulture;
} }
set set {
{
resourceCulture = value; resourceCulture = value;
} }
} }

View File

@ -1,28 +1,24 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // Dieser Code wurde von einem Tool generiert.
// Runtime Version:4.0.30319.42000 // Laufzeitversion:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// the code is regenerated. // der Code erneut generiert wird.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Test_LoadXMLFile.Properties namespace Test_Info.Properties {
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default public static Settings Default {
{ get {
get
{
return defaultInstance; return defaultInstance;
} }
} }

View File

@ -4,14 +4,15 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{29511763-82C2-4FF7-8D59-3287ACE8194C}</ProjectGuid> <ProjectGuid>{3683B887-8256-414A-B502-0F6B7088654D}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>Test_LoadXMLFile</RootNamespace> <RootNamespace>Test_LoadXMLFile</RootNamespace>
<AssemblyName>Test_LoadXMLFile</AssemblyName> <AssemblyName>Test_LoadXMLFile</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic> <Deterministic>false</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
@ -33,6 +34,9 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="heloxmlf">
<HintPath>..\LoadXMLFile\bin\Debug\heloxmlf.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@ -52,7 +56,6 @@
<Compile Include="Form1.Designer.cs"> <Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="LoadXML.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Form1.resx">

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>

Binary file not shown.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")]

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

Binary file not shown.

View File

@ -0,0 +1 @@
acf2c567d568c0e2bcb1e393785bd42be7fd0591

View File

@ -0,0 +1,15 @@
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.exe.config
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Info.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\de\Info.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\en\Info.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.Properties.Resources.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.pdb

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
a712df2b87dba04f70052918bf87496304406a24

View File

@ -0,0 +1,61 @@
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.exe.config
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Test_Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Info.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\de\Info.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\bin\Debug\en\Info.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_InfoBox.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.Properties.Resources.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_InfoBox.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_InfoBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_InfoBox.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\Info\Test_Info\obj\Debug\Test_Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\Test_Info.exe.config
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\Test_Info.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\InfoBox.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\InfoBox.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\de\InfoBox.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\bin\Debug\en\InfoBox.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_InfoBox.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_Info.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_Info.Properties.Resources.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_InfoBox.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_InfoBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_InfoBox.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_Info.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\InfoBox\Test_Info\obj\Debug\Test_Info.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.exe.config
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.exe
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\InfoBox.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\InfoBox.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\de\InfoBox.resources.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\bin\Debug\en\InfoBox.resources.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csprojAssemblyReference.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.Form1.resources
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.Properties.Resources.resources
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.GenerateResource.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.CopyComplete
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.exe
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.exe.config
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\Test_Info.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\heibox.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\heibox.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\de\heibox.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\bin\Debug\en\heibox.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.Form1.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.Properties.Resources.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_Info.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\InfoBox.git\Test_Info\obj\Debug\Test_InfoBox.csproj.SuggestedBindingRedirects.cache

View File

@ -1 +1 @@
6bdb803cc58079c75fe33506e7f9427ac86c710f 0b8631d6b28a327945e1773630c827ff35413008

View File

@ -1,11 +1,15 @@
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe.config H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.SuggestedBindingRedirects.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.Form1.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.AssemblyReference.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.Properties.Resources.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.SuggestedBindingRedirects.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.Form1.resources H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.Properties.Resources.resources H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe.config
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.GenerateResource.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.CoreCompileInputs.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.exe H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\heloxmlf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\heloxmlf.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\heloxmlf.dll.config
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.pdb