Initialize
- Routine zum Laden einer XML-Datei
This commit is contained in:
commit
efa27c0ea5
Binary file not shown.
0
.vs/Test_LoadXMLFile.git/FileContentIndex/read.lock
Normal file
0
.vs/Test_LoadXMLFile.git/FileContentIndex/read.lock
Normal file
BIN
.vs/Test_LoadXMLFile.git/v17/.suo
Normal file
BIN
.vs/Test_LoadXMLFile.git/v17/.suo
Normal file
Binary file not shown.
6
Daten/Test.xml
Normal file
6
Daten/Test.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
|
||||
<NX Id="1" Version="$$$$xx6Yge6i6GSsjXj7RLVEuw==" Standard="no" />
|
||||
<NX Id="2" Version="$$$$5A58umshAG5bqPTrmNxRpw==" Standard="yes" />
|
||||
<NX Id="3" Version="$$$$9zwCuDYzlhuWTxOlV2wJQw==" Standard="no" />
|
||||
</NX-Portal>
|
||||
6
Daten/Vorlage.xml
Normal file
6
Daten/Vorlage.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
|
||||
<NX Id="1" Version="$$$$xx6Yge6i6GSsjXj7RLVEuw==" Standard="no" />
|
||||
<NX Id="2" Version="$$$$5A58umshAG5bqPTrmNxRpw==" Standard="yes" />
|
||||
<NX Id="3" Version="$$$$9zwCuDYzlhuWTxOlV2wJQw==" Standard="no" />
|
||||
</NX-Portal>
|
||||
25
Test_LoadXMLFile.git.sln
Normal file
25
Test_LoadXMLFile.git.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.3.32929.385
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_LoadXMLFile", "Test_LoadXMLFile\Test_LoadXMLFile.csproj", "{29511763-82C2-4FF7-8D59-3287ACE8194C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{29511763-82C2-4FF7-8D59-3287ACE8194C}.Debug|Any CPU.ActiveCfg = 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.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {76D8C33D-8115-4445-80AD-B266B5346140}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
6
Test_LoadXMLFile/App.config
Normal file
6
Test_LoadXMLFile/App.config
Normal 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>
|
||||
74
Test_LoadXMLFile/Form1.Designer.cs
generated
Normal file
74
Test_LoadXMLFile/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,74 @@
|
||||
namespace Test_LoadXMLFile
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.buttonStart = new System.Windows.Forms.Button();
|
||||
this.labelResult = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonStart
|
||||
//
|
||||
this.buttonStart.Location = new System.Drawing.Point(13, 13);
|
||||
this.buttonStart.Name = "buttonStart";
|
||||
this.buttonStart.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonStart.TabIndex = 0;
|
||||
this.buttonStart.Text = "Start";
|
||||
this.buttonStart.UseVisualStyleBackColor = true;
|
||||
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
|
||||
//
|
||||
// labelResult
|
||||
//
|
||||
this.labelResult.AutoSize = true;
|
||||
this.labelResult.Location = new System.Drawing.Point(13, 43);
|
||||
this.labelResult.Name = "labelResult";
|
||||
this.labelResult.Size = new System.Drawing.Size(16, 13);
|
||||
this.labelResult.TabIndex = 1;
|
||||
this.labelResult.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.labelResult);
|
||||
this.Controls.Add(this.buttonStart);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button buttonStart;
|
||||
private System.Windows.Forms.Label labelResult;
|
||||
}
|
||||
}
|
||||
|
||||
124
Test_LoadXMLFile/Form1.cs
Normal file
124
Test_LoadXMLFile/Form1.cs
Normal file
@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Test_LoadXMLFile
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void buttonStart_Click(object sender, EventArgs e)
|
||||
{
|
||||
var load = new LoadXML();
|
||||
load.FileName = @"C:\Temp\Test\Test.xml";
|
||||
load.Topic = "NX-Portal";
|
||||
load.Group = "Management";
|
||||
load.Key = "Method";
|
||||
//load.LoadAllValues = LoadXML.LoadAll.Yes;
|
||||
load.LoadAllValues = LoadXML.LoadAll.No;
|
||||
load.Load();
|
||||
|
||||
if (load.Values != null)
|
||||
{
|
||||
labelResult.Text = Ausgabe(load.FileName, load.Topic, load.Group, load.Key, load.Values);
|
||||
}
|
||||
|
||||
load.Group = "NX";
|
||||
load.Key = "Version";
|
||||
load.Load();
|
||||
|
||||
if (load.Values != null)
|
||||
{
|
||||
labelResult.Text += Ausgabe2(load.Group, load.Key, load.Values);
|
||||
}
|
||||
else
|
||||
{
|
||||
labelResult.Text = "Keine Werte";
|
||||
}
|
||||
}
|
||||
|
||||
private string Ausgabe(string fileName, string topic, string group, string key, string[,] values)
|
||||
{
|
||||
string result = "";
|
||||
|
||||
result = "Filename: " + fileName;
|
||||
result += "\r\nTopic: " + topic;
|
||||
result += "\r\nGroup: " + group;
|
||||
result += "\r\nKey: " + key;
|
||||
result += "\r\n\r\nValues (ID - Methode - Standard): ";
|
||||
|
||||
int z = 0;
|
||||
|
||||
foreach (var item in values)
|
||||
{
|
||||
if (z==3)
|
||||
{
|
||||
z = 0;
|
||||
}
|
||||
if (z==2)
|
||||
{
|
||||
result += " - " + item;
|
||||
z++;
|
||||
}
|
||||
if (z==1)
|
||||
{
|
||||
result += " - " + item;
|
||||
z++;
|
||||
}
|
||||
if (z==0)
|
||||
{
|
||||
result += "\r\n" + item;
|
||||
z++;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private string Ausgabe2(string group, string key, string[,] values)
|
||||
{
|
||||
string result = "";
|
||||
|
||||
result += "\r\n\r\nGroup: " + group;
|
||||
result += "\r\nKey: " + key;
|
||||
result += "\r\n\r\nValues (ID - Version - Standard): ";
|
||||
|
||||
int z = 0;
|
||||
|
||||
foreach (var item in values)
|
||||
{
|
||||
if (z == 3)
|
||||
{
|
||||
z = 0;
|
||||
}
|
||||
if (z == 2)
|
||||
{
|
||||
result += " - " + item;
|
||||
z++;
|
||||
}
|
||||
if (z == 1)
|
||||
{
|
||||
result += " - " + item;
|
||||
z++;
|
||||
}
|
||||
if (z == 0)
|
||||
{
|
||||
result += "\r\n" + item;
|
||||
z++;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Test_LoadXMLFile/Form1.resx
Normal file
120
Test_LoadXMLFile/Form1.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<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" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</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" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
195
Test_LoadXMLFile/LoadXML.cs
Normal file
195
Test_LoadXMLFile/LoadXML.cs
Normal file
@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using System.Xml.XPath;
|
||||
|
||||
//namespace Eugen.ESystem.Windows.Forms
|
||||
namespace Test_LoadXMLFile
|
||||
{
|
||||
internal class LoadXML
|
||||
{
|
||||
public enum LoadAll
|
||||
{
|
||||
No,
|
||||
Yes
|
||||
}
|
||||
|
||||
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. "Key"
|
||||
public string[,] Values { get; set; } //z.B. "NX 1953"
|
||||
public int Standard { get; set; } //z.B. "2"
|
||||
public LoadAll LoadAllValues { get; set; }
|
||||
|
||||
public void Load()
|
||||
{
|
||||
if (File.Exists(FileName))
|
||||
{
|
||||
// Das Dokument in eine neue XElement-Instanz laden
|
||||
XElement rootElement = XElement.Load(FileName);
|
||||
|
||||
if (rootElement.ToString().Remove(rootElement.ToString().IndexOf(" ")) == "<" + Topic || LoadAllValues == LoadAll.Yes)
|
||||
{
|
||||
// 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();
|
||||
|
||||
if (String.IsNullOrEmpty(Group))
|
||||
{
|
||||
string[] temp = new string[5];
|
||||
|
||||
List<string> lkeys = new List<string>();
|
||||
List<string> lvalues = new List<string>();
|
||||
List<string> lstandard = new List<string>();
|
||||
|
||||
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 || LoadAllValues == LoadAll.Yes)
|
||||
{
|
||||
temp = groupElement.ToString().Split(' ');
|
||||
|
||||
//Wenn Leerzeichen im Wert sind, dann werden mehr als 6 Elemente belegt.
|
||||
//In diesem Fall die Teilelemente wieder zu einem Element zusammenführen.
|
||||
if (temp.Length > 6)
|
||||
{
|
||||
int count = temp.Length - 6;
|
||||
|
||||
for (int i = 1; i < count + 1; i++)
|
||||
{
|
||||
temp[2] += " " + temp[2 + i]; //Die Teilelemente zusammensetzen
|
||||
}
|
||||
|
||||
var numbersList = temp.ToList(); //Array in eine List umwandeln
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
numbersList.Remove(numbersList[3]); //Die nicht mehr gültigen Teilelemente löschen
|
||||
}
|
||||
|
||||
temp = numbersList.ToArray(); //List in ein Array zurückwandeln
|
||||
}
|
||||
|
||||
Group = ExtractGroup(temp);
|
||||
Key = ExtractKey(temp);
|
||||
lvalues.Add(ExtractValue(temp));
|
||||
lstandard.Add(ExtractStandard(temp));
|
||||
}
|
||||
}
|
||||
|
||||
string[,] values = new string[lvalues.Count, 3];
|
||||
int standard = 0;
|
||||
|
||||
for (int i = 0; i < lvalues.Count; i++)
|
||||
{
|
||||
values[i, 2] = lvalues[i];
|
||||
|
||||
if (lstandard[i] == "yes")
|
||||
{
|
||||
standard = i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Values = values;
|
||||
Standard = standard;
|
||||
}
|
||||
else
|
||||
{
|
||||
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 || LoadAllValues == LoadAll.Yes)
|
||||
{
|
||||
//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 string ExtractGroup(string[] temp)
|
||||
{
|
||||
return temp[0].Remove(0, 1);
|
||||
}
|
||||
|
||||
private string ExtractKey(string[] temp)
|
||||
{
|
||||
return temp[2].Remove(temp[2].IndexOf("="));
|
||||
}
|
||||
|
||||
private string ExtractValue(string[] temp)
|
||||
{
|
||||
return temp[2].Remove(0, temp[2].IndexOf("=") + 1).Replace("\"", "");
|
||||
}
|
||||
|
||||
private string ExtractStandard(string[] temp)
|
||||
{
|
||||
return temp[3].Remove(0, temp[3].IndexOf("=") + 1).Replace("\"", "");
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
if (groups[i].Standard == "yes")
|
||||
{
|
||||
Standard = i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Values = values;
|
||||
}
|
||||
}
|
||||
|
||||
class Topics
|
||||
{
|
||||
public string Id;
|
||||
public string Key;
|
||||
public string Standard;
|
||||
}
|
||||
}
|
||||
95
Test_LoadXMLFile/LoadXML.cs_old
Normal file
95
Test_LoadXMLFile/LoadXML.cs_old
Normal file
@ -0,0 +1,95 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
22
Test_LoadXMLFile/Program.cs
Normal file
22
Test_LoadXMLFile/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Test_LoadXMLFile
|
||||
{
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Test_LoadXMLFile/Properties/AssemblyInfo.cs
Normal file
36
Test_LoadXMLFile/Properties/AssemblyInfo.cs
Normal 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("Test_LoadXMLFile")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("ENGEL")]
|
||||
[assembly: AssemblyProduct("Test_LoadXMLFile")]
|
||||
[assembly: AssemblyCopyright("Copyright © ENGEL 2022")]
|
||||
[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.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
Test_LoadXMLFile/Properties/Resources.Designer.cs
generated
Normal file
71
Test_LoadXMLFile/Properties/Resources.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
Test_LoadXMLFile/Properties/Resources.resx
Normal file
117
Test_LoadXMLFile/Properties/Resources.resx
Normal 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>
|
||||
30
Test_LoadXMLFile/Properties/Settings.Designer.cs
generated
Normal file
30
Test_LoadXMLFile/Properties/Settings.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
Test_LoadXMLFile/Properties/Settings.settings
Normal file
7
Test_LoadXMLFile/Properties/Settings.settings
Normal 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>
|
||||
84
Test_LoadXMLFile/Test_LoadXMLFile.csproj
Normal file
84
Test_LoadXMLFile/Test_LoadXMLFile.csproj
Normal file
@ -0,0 +1,84 @@
|
||||
<?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>WinExe</OutputType>
|
||||
<RootNamespace>Test_LoadXMLFile</RootNamespace>
|
||||
<AssemblyName>Test_LoadXMLFile</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</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>
|
||||
<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="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="LoadXML.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<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>
|
||||
BIN
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.exe
Normal file
BIN
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.exe
Normal file
Binary file not shown.
6
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.exe.config
Normal file
6
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.exe.config
Normal 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>
|
||||
BIN
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.pdb
Normal file
BIN
Test_LoadXMLFile/bin/Debug/Test_LoadXMLFile.pdb
Normal file
Binary file not shown.
@ -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")]
|
||||
Binary file not shown.
Binary file not shown.
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.Form1.resources
Normal file
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.Form1.resources
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
6bdb803cc58079c75fe33506e7f9427ac86c710f
|
||||
@ -0,0 +1,11 @@
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe.config
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.exe
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\bin\Debug\Test_LoadXMLFile.pdb
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.AssemblyReference.cache
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.csproj.SuggestedBindingRedirects.cache
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_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.Properties.Resources.resources
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_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.csproj.CoreCompileInputs.cache
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.exe
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_LoadXMLFile.git\Test_LoadXMLFile\obj\Debug\Test_LoadXMLFile.pdb
|
||||
Binary file not shown.
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.exe
Normal file
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.exe
Normal file
Binary file not shown.
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.pdb
Normal file
BIN
Test_LoadXMLFile/obj/Debug/Test_LoadXMLFile.pdb
Normal file
Binary file not shown.
1
Test_LoadXMLFile/obj/Debug/_IsIncrementalBuild
Normal file
1
Test_LoadXMLFile/obj/Debug/_IsIncrementalBuild
Normal file
@ -0,0 +1 @@
|
||||
obj\Debug\\_IsIncrementalBuild
|
||||
Loading…
Reference in New Issue
Block a user