Initialize

- User Control mit dem Werte in eine XML Datei geschrieben werden können
This commit is contained in:
Eugen Höglinger 2023-01-10 17:02:34 +01:00
commit b71f7a18ca
125 changed files with 3716 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<Nativ Program="ugs_router.exe" />
<Nativ Argument="-ug" />
</NX-Portal>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<TeamCenter_Prod Program="C:\CAD\TC12\portal\IDNportal.bat" />
</NX-Portal>

13
Daten/Group.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<Group Id="1" Scope="CAD" Standard="yes" />
<Group Id="2" Scope="CAM" Standard="no" />
<Group Id="3" Scope="EXPLOSION" Standard="no" />
<Group Id="4" Scope="LAYOUT" Standard="no" />
<Group Id="5" Scope="RENDER" Standard="no" />
<Group Id="6" Scope="SIMULATION" Standard="no" />
<Group Id="7" Scope="TEST" Standard="no" />
<Group Id="8" Scope="VR" Standard="no" />
<Group Id="9" Scope="3DC" Standard="no" />
<Group Id="10" Scope="--&gt; Project" Standard="no" />
</NX-Portal>

5
Daten/Language.xml Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<System Id="1" Language="English" Standard="yes" />
<System Id="2" Language="Deutsch" Standard="no" />
</NX-Portal>

7
Daten/Management.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<Management Id="1" Method="Nativ" Standard="no" />
<Management Id="2" Method="TeamCenter Prod" Standard="yes" />
<Management Id="3" Method="TeamCenter Qua" Standard="no" />
<Management Id="4" Method="TeamCenter Dev" Standard="no" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX2206 UGII_BASE_DIR="C:\CAD\NX2206" />
<NX2206 UGII_ROOT_DIR="C:\CAD\NX2206\UGII\" />
<NX2206 UGII_ENV_FILE="M:\UG\NX2206_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX2206 UGII_LANG="english" />
<NX2206 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX2206 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX2206 UGII_PATDIR="M:\ug\NX2206_NXTC\global\01_TEMPLATES\pattern" />
<NX2206 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX2206_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX2206 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX2206 UGII_TMP_DIR="C:\TEMP" />
<NX2206 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX2206 NXTOOLS_SYSDIR="M:\ug\NX2206_NXTC\NxTools" />
<NX2206 NX_SERVER_DIR="M:\ug\NX2206_NXTC" />
<NX2206 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help/#uid:index" />
<NX2206 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help/#uid:index_whatsnew" />
<NX2206 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX2206 UGII_BASE_DIR="C:\CAD\NX2206" />
<NX2206 UGII_ROOT_DIR="C:\CAD\NX2206\UGII\" />
<NX2206 UGII_ENV_FILE="M:\UG\NX2206_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX2206 UGII_LANG="english" />
<NX2206 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX2206 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX2206 UGII_PATDIR="M:\ug\NX2206_NXTC\global\01_TEMPLATES\pattern" />
<NX2206 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX2206_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX2206 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX2206 UGII_TMP_DIR="C:\TEMP" />
<NX2206 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX2206 NXTOOLS_SYSDIR="M:\ug\NX2206_NXTC\NxTools" />
<NX2206 NX_SERVER_DIR="M:\ug\NX2206_NXTC" />
<NX2206 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help/#uid:index" />
<NX2206 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help/#uid:index_whatsnew" />
<NX2206 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/2206/nx_help" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX1953 UGII_BASE_DIR="C:\CAD\NX1953" />
<NX1953 UGII_ROOT_DIR="C:\CAD\NX1953\UGII\" />
<NX1953 UGII_ENV_FILE="M:\UG\NX1953_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX1953 UGII_LANG="english" />
<NX1953 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX1953 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX1953 UGII_PATDIR="M:\ug\NX1953_NXTC\global\01_TEMPLATES\pattern" />
<NX1953 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX1953_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX1953 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX1953 UGII_TMP_DIR="C:\TEMP" />
<NX1953 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX1953 NXTOOLS_SYSDIR="M:\ug\NX1953_NXTC\NxTools" />
<NX1953 NX_SERVER_DIR="M:\ug\NX1953_NXTC" />
<NX1953 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help/#uid:index" />
<NX1953 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help/#uid:index_whatsnew" />
<NX1953 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX1953 UGII_BASE_DIR="C:\CAD\NX1953" />
<NX1953 UGII_ROOT_DIR="C:\CAD\NX1953\UGII\" />
<NX1953 UGII_ENV_FILE="M:\UG\NX1953_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX1953 UGII_LANG="english" />
<NX1953 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX1953 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX1953 UGII_PATDIR="M:\ug\NX1953_NXTC\global\01_TEMPLATES\pattern" />
<NX1953 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX1953_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX1953 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX1953 UGII_TMP_DIR="C:\TEMP" />
<NX1953 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX1953 NXTOOLS_SYSDIR="M:\ug\NX1953_NXTC\NxTools" />
<NX1953 NX_SERVER_DIR="M:\ug\NX1953_NXTC" />
<NX1953 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help/#uid:index" />
<NX1953 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help/#uid:index_whatsnew" />
<NX1953 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/1953/nx_help" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX2212 UGII_BASE_DIR="C:\CAD\NX2212" />
<NX2212 UGII_ROOT_DIR="C:\CAD\NX2212\UGII\" />
<NX2212 UGII_ENV_FILE="M:\UG\NX2212_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX2212 UGII_LANG="english" />
<NX2212 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX2212 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX2212 UGII_PATDIR="M:\ug\NX2212_NXTC\global\01_TEMPLATES\pattern" />
<NX2212 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX2212_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX2212 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX2212 UGII_TMP_DIR="C:\TEMP" />
<NX2212 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX2212 NXTOOLS_SYSDIR="M:\ug\NX2212_NXTC\NxTools" />
<NX2212 NX_SERVER_DIR="M:\ug\NX2212_NXTC" />
<NX2212 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help/#uid:index" />
<NX2212 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help/#uid:index_whatsnew" />
<NX2212 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help" />
</NX-Portal>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX2212 UGII_BASE_DIR="C:\CAD\NX2212" />
<NX2212 UGII_ROOT_DIR="C:\CAD\NX2212\UGII\" />
<NX2212 UGII_ENV_FILE="M:\UG\NX2212_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat" />
<NX2212 UGII_LANG="english" />
<NX2212 SPLM_LICENSE_SERVER="28000@EMSCADLIC.engel.int" />
<NX2212 UGS_LICENSE_BUNDLE1="NX91100N" />
<NX2212 UGII_PATDIR="M:\ug\NX2212_NXTC\global\01_TEMPLATES\pattern" />
<NX2212 UGII_CUSTOM_DIRECTORY_FILE="M:\ug\NX2212_NXTC\global\00_DEFAULTS\UGII\menus\custom_dirs.dat" />
<NX2212 UGII_BACKGROUND_URL="M:\ug\CAD\UGTIPS\index.html" />
<NX2212 UGII_TMP_DIR="C:\TEMP" />
<NX2212 UGII_JAVA_HOME="%ProgramFiles%\Java\jre1.8.0_161" />
<NX2212 NXTOOLS_SYSDIR="M:\ug\NX2212_NXTC\NxTools" />
<NX2212 NX_SERVER_DIR="M:\ug\NX2212_NXTC" />
<NX2212 UGII_HTML_UGDOC="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help/#uid:index" />
<NX2212 UGII_HELP_WHATS_NEW="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help/#uid:index_whatsnew" />
<NX2212 UGII_CSHELP_DOCS="https://docs.plm.automation.siemens.com/tdoc/nx/2212/nx_help" />
</NX-Portal>

6
Daten/NxVersions.xml Normal file
View 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="$$$$oUOrgRF9nsXaVxJLcu9YMw==" Standard="yes" />
<NX Id="2" Version="$$$$aiADY41EEx0/KfRZskfaiScpsIAvljd4ZHbUnTg5P38=" Standard="no" />
<NX Id="3" Version="$$$$BGZs8NynUYOYFhY9IHGUqA==" Standard="no" />
</NX-Portal>

6
Daten/NxVersions.xml_old Normal file
View 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="$$$$xa4RRiGoBb+26n8zEgLaXA==" Standard="no" />
<NX Id="2" Version="$$$$nqQJ//7XiUhJ7t/gnTC96A==" Standard="yes" />
<NX Id="3" Version="$$$$skIRJG4U50VImluBdjEfuw==" Standard="no" />
</NX-Portal>

BIN
Daten/Pfeil_links.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

BIN
Daten/Pfeil_oben.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

BIN
Daten/Pfeil_rechts.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

BIN
Daten/Pfeil_unten.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

4
Daten/Project.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<Projects Id="1" Project="Non" Standard="no" />
</NX-Portal>

6
Daten/Test.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<NX-Portal xmlns="https://www.engelglobal.com/de/at/index.html">
<NX_1953 x1="$$$$S7YxfGArYNmGwbmzS4nm1g==" />
<NX_1953 y2="$$$$nqJGUbGGlaUdO183MBXJ1w==" />
<NX_1953 z3="$$$$GW4BrEDIAarJjXy1GWwFeA==" />
</NX-Portal>

BIN
Daten/Thumbs.db Normal file

Binary file not shown.

31
DuoMultiValueControl.sln Normal file
View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32901.215
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DuoMultiValueControl", "DuoMultiValueControl\DuoMultiValueControl.csproj", "{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HE-DuoMultiValueControl", "HE-Test_Dll\HE-Test_DuoMultiValueControl.csproj", "{2B71D20F-009D-4089-8C69-98DCCFADF932}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}.Release|Any CPU.Build.0 = Release|Any CPU
{2B71D20F-009D-4089-8C69-98DCCFADF932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B71D20F-009D-4089-8C69-98DCCFADF932}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B71D20F-009D-4089-8C69-98DCCFADF932}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B71D20F-009D-4089-8C69-98DCCFADF932}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {59AAF131-8BF2-4032-93D1-76882EA9D29A}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,266 @@
namespace Eugen.ESystem.Windows.Forms
{
partial class DuoMultiValueControl
{
/// <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 Komponenten-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.groupBoxValueControl = new System.Windows.Forms.GroupBox();
this.comboBoxGroup2 = new System.Windows.Forms.ComboBox();
this.labelGroup2 = new System.Windows.Forms.Label();
this.buttonCleanup = new System.Windows.Forms.Button();
this.comboBoxGroup1 = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.checkBoxEncryptValues = new System.Windows.Forms.CheckBox();
this.buttonDown = new System.Windows.Forms.Button();
this.buttonUp = new System.Windows.Forms.Button();
this.buttonSave = new System.Windows.Forms.Button();
this.buttonLoad = new System.Windows.Forms.Button();
this.dataGridViewValues = new System.Windows.Forms.DataGridView();
this.ColumnName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColumnValue = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.labelGroup1 = new System.Windows.Forms.Label();
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
this.groupBoxValueControl.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewValues)).BeginInit();
this.SuspendLayout();
//
// groupBoxValueControl
//
this.groupBoxValueControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxValueControl.Controls.Add(this.comboBoxGroup2);
this.groupBoxValueControl.Controls.Add(this.labelGroup2);
this.groupBoxValueControl.Controls.Add(this.buttonCleanup);
this.groupBoxValueControl.Controls.Add(this.comboBoxGroup1);
this.groupBoxValueControl.Controls.Add(this.panel1);
this.groupBoxValueControl.Controls.Add(this.buttonDown);
this.groupBoxValueControl.Controls.Add(this.buttonUp);
this.groupBoxValueControl.Controls.Add(this.buttonSave);
this.groupBoxValueControl.Controls.Add(this.buttonLoad);
this.groupBoxValueControl.Controls.Add(this.dataGridViewValues);
this.groupBoxValueControl.Controls.Add(this.labelGroup1);
this.groupBoxValueControl.Location = new System.Drawing.Point(0, 0);
this.groupBoxValueControl.Name = "groupBoxValueControl";
this.groupBoxValueControl.Size = new System.Drawing.Size(316, 227);
this.groupBoxValueControl.TabIndex = 0;
this.groupBoxValueControl.TabStop = false;
this.groupBoxValueControl.Text = "Value control";
//
// comboBoxGroup2
//
this.comboBoxGroup2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboBoxGroup2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxGroup2.FormattingEnabled = true;
this.comboBoxGroup2.Location = new System.Drawing.Point(109, 46);
this.comboBoxGroup2.Name = "comboBoxGroup2";
this.comboBoxGroup2.Size = new System.Drawing.Size(120, 21);
this.comboBoxGroup2.TabIndex = 15;
this.comboBoxGroup2.SelectedIndexChanged += new System.EventHandler(this.comboBoxGroup2_SelectedIndexChanged);
this.comboBoxGroup2.TextChanged += new System.EventHandler(this.comboBoxGroup2_TextChanged);
//
// labelGroup2
//
this.labelGroup2.Location = new System.Drawing.Point(6, 49);
this.labelGroup2.Name = "labelGroup2";
this.labelGroup2.Size = new System.Drawing.Size(97, 13);
this.labelGroup2.TabIndex = 14;
this.labelGroup2.Text = "Group1 2";
//
// buttonCleanup
//
this.buttonCleanup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCleanup.Location = new System.Drawing.Point(235, 72);
this.buttonCleanup.Name = "buttonCleanup";
this.buttonCleanup.Size = new System.Drawing.Size(75, 23);
this.buttonCleanup.TabIndex = 13;
this.buttonCleanup.Text = "Cleanup";
this.buttonCleanup.UseVisualStyleBackColor = true;
this.buttonCleanup.Click += new System.EventHandler(this.buttonCleanup_Click);
//
// comboBoxGroup1
//
this.comboBoxGroup1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboBoxGroup1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxGroup1.FormattingEnabled = true;
this.comboBoxGroup1.Location = new System.Drawing.Point(109, 19);
this.comboBoxGroup1.Name = "comboBoxGroup1";
this.comboBoxGroup1.Size = new System.Drawing.Size(120, 21);
this.comboBoxGroup1.TabIndex = 12;
this.comboBoxGroup1.SelectedIndexChanged += new System.EventHandler(this.comboBoxGroup1_SelectedIndexChanged);
this.comboBoxGroup1.TextChanged += new System.EventHandler(this.comboBoxGroup1_TextChanged);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.checkBoxEncryptValues);
this.panel1.Location = new System.Drawing.Point(235, 130);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(75, 62);
this.panel1.TabIndex = 11;
//
// checkBoxEncryptValues
//
this.checkBoxEncryptValues.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.checkBoxEncryptValues.Location = new System.Drawing.Point(0, 22);
this.checkBoxEncryptValues.Name = "checkBoxEncryptValues";
this.checkBoxEncryptValues.Size = new System.Drawing.Size(62, 17);
this.checkBoxEncryptValues.TabIndex = 6;
this.checkBoxEncryptValues.Text = "Encrypt";
this.checkBoxEncryptValues.UseVisualStyleBackColor = true;
//
// buttonDown
//
this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDown.BackgroundImage = global::Eugen.ESystem.Windows.Forms.Properties.Resources.Pfeil_unten;
this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.buttonDown.Location = new System.Drawing.Point(235, 198);
this.buttonDown.Name = "buttonDown";
this.buttonDown.Size = new System.Drawing.Size(75, 23);
this.buttonDown.TabIndex = 10;
this.buttonDown.UseVisualStyleBackColor = true;
this.buttonDown.Click += new System.EventHandler(this.buttonDown_Click);
//
// buttonUp
//
this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUp.BackgroundImage = global::Eugen.ESystem.Windows.Forms.Properties.Resources.Pfeil_oben;
this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.buttonUp.Location = new System.Drawing.Point(235, 101);
this.buttonUp.Name = "buttonUp";
this.buttonUp.Size = new System.Drawing.Size(75, 23);
this.buttonUp.TabIndex = 9;
this.buttonUp.UseVisualStyleBackColor = true;
this.buttonUp.Click += new System.EventHandler(this.buttonUp_Click);
//
// buttonSave
//
this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSave.Location = new System.Drawing.Point(235, 43);
this.buttonSave.Name = "buttonSave";
this.buttonSave.Size = new System.Drawing.Size(75, 23);
this.buttonSave.TabIndex = 8;
this.buttonSave.Text = "Save";
this.buttonSave.UseVisualStyleBackColor = true;
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
//
// buttonLoad
//
this.buttonLoad.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonLoad.Location = new System.Drawing.Point(235, 17);
this.buttonLoad.Name = "buttonLoad";
this.buttonLoad.Size = new System.Drawing.Size(75, 23);
this.buttonLoad.TabIndex = 7;
this.buttonLoad.Text = "Load";
this.buttonLoad.UseVisualStyleBackColor = true;
this.buttonLoad.Click += new System.EventHandler(this.buttonLoad_Click);
//
// dataGridViewValues
//
this.dataGridViewValues.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridViewValues.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridViewValues.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ColumnName,
this.ColumnValue});
this.dataGridViewValues.Location = new System.Drawing.Point(6, 73);
this.dataGridViewValues.Name = "dataGridViewValues";
this.dataGridViewValues.Size = new System.Drawing.Size(223, 148);
this.dataGridViewValues.TabIndex = 4;
this.dataGridViewValues.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.dataGridViewValues_RowsRemoved);
this.dataGridViewValues.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridViewValues_KeyDown);
//
// ColumnName
//
this.ColumnName.HeaderText = "Variable Name";
this.ColumnName.MinimumWidth = 90;
this.ColumnName.Name = "ColumnName";
this.ColumnName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
this.ColumnName.Width = 90;
//
// ColumnValue
//
this.ColumnValue.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.ColumnValue.HeaderText = "Variable Value";
this.ColumnValue.MinimumWidth = 90;
this.ColumnValue.Name = "ColumnValue";
//
// labelGroup1
//
this.labelGroup1.Location = new System.Drawing.Point(6, 22);
this.labelGroup1.Name = "labelGroup1";
this.labelGroup1.Size = new System.Drawing.Size(97, 13);
this.labelGroup1.TabIndex = 0;
this.labelGroup1.Text = "Group1 1";
//
// openFileDialog
//
this.openFileDialog.FileName = "openFileDialog";
//
// DuoMultiValueControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupBoxValueControl);
this.MaximumSize = new System.Drawing.Size(800, 460);
this.MinimumSize = new System.Drawing.Size(316, 227);
this.Name = "DuoMultiValueControl";
this.Size = new System.Drawing.Size(316, 227);
this.groupBoxValueControl.ResumeLayout(false);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridViewValues)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBoxValueControl;
private System.Windows.Forms.Button buttonSave;
private System.Windows.Forms.Button buttonLoad;
private System.Windows.Forms.CheckBox checkBoxEncryptValues;
private System.Windows.Forms.DataGridView dataGridViewValues;
private System.Windows.Forms.Label labelGroup1;
private System.Windows.Forms.Button buttonDown;
private System.Windows.Forms.Button buttonUp;
private System.Windows.Forms.OpenFileDialog openFileDialog;
private System.Windows.Forms.SaveFileDialog saveFileDialog;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnName;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnValue;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ComboBox comboBoxGroup1;
private System.Windows.Forms.Button buttonCleanup;
private System.Windows.Forms.ComboBox comboBoxGroup2;
private System.Windows.Forms.Label labelGroup2;
}
}

View File

@ -0,0 +1,867 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Xml.Linq;
using System.Windows.Markup;
using AppRes = Eugen.ESystem.Windows.Forms.Properties.AppResources;
using System.Windows.Shapes;
namespace Eugen.ESystem.Windows.Forms
{
public partial class DuoMultiValueControl : UserControl
{
#region Version und Copyright
// Keys und Copyright
static string dllName = System.IO.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 dll file.
/// </summary>
public static string DllName { private set; get; }
/// <summary>
/// Contains the version of the dll file.
/// </summary>
public static string DllVersion { private set; get; }
/// <summary>
/// Contains the copyright notice.
/// </summary>
public static string Copyright { private set; get; }
/// <summary>
/// Contains the name-, version- and copyright-information of the dll file.
/// </summary>
public static string[] DllInfo { private set; get; }
private static void SetDllInfo()
{
//Name, Keys und Copyright setzen
DllName = dllName;
DllVersion = dllVersion;
Copyright = copyright;
}
#endregion
static DuoMultiValueControl()
{
SetDllInfo(); //Name, Keys und Copyright der DLL setzen
}
/// <summary>
/// Creates a control with which the values in an XML file can be edited
/// </summary>
public DuoMultiValueControl()
{
InitializeComponent();
InitialDirectory = @"C:\";
Topic = "Topic";
StandardValue = 0;
}
#region Public values
/// <summary>
/// The password used for encryption. An empty value disables the Encrypt values switch
/// </summary>
public string Password
{
get { return password; }
set
{
password = value;
checkBoxEncryptValues.Enabled = !String.IsNullOrEmpty(Password);
}
}
/// <summary>
/// Defines or read the initial directory
/// </summary>
public string InitialDirectory { set; get; }
/// <summary>
/// XML file name. Must be specified mandatory
/// </summary>
public string XMLfileName { set; get; }
/// <summary>
/// XML group 1 file name. Must be specified mandatory and defines the XML file in which the groups are stored
/// </summary>
public string XMLgroup1FileName { set; get; }
/// <summary>
/// XML group 2 file name. Must be specified mandatory and defines the XML file in which the groups are stored
/// </summary>
public string XMLgroup2FileName { set; get; }
/// <summary>
/// Adjusts the labeling of the values control. An empty value forces the default labeling
/// </summary>
public string ValueControlName
{
get { return groupBoxValueControl.Text; }
set
{
groupBoxValueControl.Text = value;
groupBoxValueControl.Refresh();
}
}
/// <summary>
/// Defines the Topic. An empty value forces the default labeling
/// </summary>
public string Topic { set; get; }
/// <summary>
/// Adjusts the labeling of the group 1 designation. An empty value forces the default labeling
/// </summary>
public string GroupName1
{
get { return labelGroup1.Text; }
set { labelGroup1.Text = value; }
}
/// <summary>
/// Adjusts the labeling of the group 2 designation. An empty value forces the default labeling
/// </summary>
public string GroupName2
{
get { return labelGroup2.Text; }
set { labelGroup2.Text = value; }
}
/// <summary>
/// Changes the name of the group 1 attribute used in the XML file, which is displayed and must be included in groups. Required for the Load function
/// </summary>
public string Group1 { set; get; }
/// <summary>
/// Changes the name of the group 2 attribute used in the XML file, which is displayed and must be included in groups. Required for the Load function
/// </summary>
public string Group2 { set; get; }
/// <summary>
/// List of group 1 attribute names. Required for the Load function
/// </summary>
public string[] Groups1 { set; get; }
/// <summary>
/// List of group 2 attribute names. Required for the Load function
/// </summary>
public string[] Groups2 { set; get; }
/// <summary>
/// Adjusts the name of the key attribute used in the XML file. Required by the Load function
/// </summary>
public string Key { set; get; }
/// <summary>
/// Adjusts the labeling of the table header designation for the key. An empty value forces the default labeling
/// </summary>
public string TableKeyName
{
get { return dataGridViewValues.Columns[0].HeaderText; }
set { dataGridViewValues.Columns[0].HeaderText = value; }
}
/// <summary>
/// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling
/// </summary>
public string TableValueName
{
get { return dataGridViewValues.Columns[1].HeaderText; }
set { dataGridViewValues.Columns[1].HeaderText = value; }
}
/// <summary>
/// Adjusts the labeling of the encrypt value checkBox. An empty value forces the default labeling
/// </summary>
public string CheckBoxEncryptValueText
{
get { return checkBoxEncryptValues.Text; }
set
{
checkBoxEncryptValues.Text = value;
checkBoxEncryptValues.Enabled = !String.IsNullOrEmpty(Password);
}
}
/// <summary>
/// Controls whether values are always encrypted. An empty value forces the default value (false)
/// </summary>
public bool AlwaysEncrypted
{
get { return alwaysEncrypted; }
set
{
alwaysEncrypted = value;
checkBoxEncryptValues.Enabled = !alwaysEncrypted;
checkBoxEncryptValues.Checked = alwaysEncrypted;
}
}
#endregion
#region Private values
private string password;
private bool alwaysEncrypted = false;
private bool standardValueSet = false;
private int selectedRow = 0;
private int rowIndexColored = 0;
private int StandardValue { get; set; }
private string XmlFileName { get; set; }
private string OldXMLfileName { get; set; }
private List<string> OldNameData { get; set; }
private List<string> OldValueData { get; set; }
private List<string> NewNameData { get; set; }
private List<string> NewValueData { get; set; }
private bool OldEcryptStatus { get; set; }
private bool NewEcryptStatus { get; set; }
#endregion
private void comboBoxGroup1_SelectedIndexChanged(object sender, EventArgs e)
{
SelectedIndexChanged();
}
private void comboBoxGroup2_SelectedIndexChanged(object sender, EventArgs e)
{
SelectedIndexChanged();
}
private void SelectedIndexChanged()
{
if (comboBoxGroup1.Items.Count != 0)
{
Group1 = comboBoxGroup1.SelectedItem.ToString();
}
if (comboBoxGroup2.Items.Count != 0)
{
Group2 = comboBoxGroup2.SelectedItem.ToString();
}
if (!String.IsNullOrEmpty(Group1) & !String.IsNullOrEmpty(Group2))
{
XmlFileName = String.Concat(XMLfileName.Replace(".xml", ""), "_", Group1, "_", Group2, ".xml");
OldXMLfileName = XmlFileName;
//XMLfileName = String.Concat(InitialDirectory, "\\", Group1, ".xml");
buttonSave.Enabled = (!String.IsNullOrEmpty(comboBoxGroup1.Text)) & (!String.IsNullOrEmpty(comboBoxGroup2.Text));
//OldNameData und OldValueDate schreiben
SetData("new");
if (File.Exists(XmlFileName))
{
if (dataGridViewValues.Rows.Count > 1)
{
//Wurden in der Datagridview Werte geändert, dann speichern
if (HasAnyDataChanged())
{
DialogResult result = MessageBox.Show(AppRes.msgBoxTxt003, AppRes.msgBoxCapt003, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
//Datagridview speichern
SaveXML(OldXMLfileName);
}
}
}
//Datagridview leeren und XML Laden
dataGridViewValues.Rows.Clear();
LoadXML();
}
else
{
if (dataGridViewValues.Rows.Count > 1)
{
//Wurden in der Datagridview Werte geändert, dann speichern
if (HasAnyDataChanged())
{
DialogResult result = MessageBox.Show(AppRes.msgBoxTxt003, AppRes.msgBoxCapt003, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
//Datagridview speichern
SaveXML(OldXMLfileName);
}
}
}
dataGridViewValues.Rows.Clear();
MessageBox.Show(AppRes.msgBoxTxt002, AppRes.msgBoxCapt002, MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
//OldNameData und OldValueDate schreiben
SetData("old");
}
}
private void comboBoxGroup1_TextChanged(object sender, EventArgs e)
{
buttonSave.Enabled = (!String.IsNullOrEmpty(comboBoxGroup1.Text));
}
private void comboBoxGroup2_TextChanged(object sender, EventArgs e)
{
buttonSave.Enabled = (!String.IsNullOrEmpty(comboBoxGroup2.Text));
}
private void buttonUp_Click(object sender, EventArgs e)
{
if (dataGridViewValues.SelectedCells.Count > 0)
{
int index = dataGridViewValues.SelectedCells[0].OwningRow.Index;
if (index > 0)
{
int col = dataGridViewValues.SelectedCells[0].OwningColumn.Index;
DataGridViewRowCollection rows = dataGridViewValues.Rows;
DataGridViewRow row = rows[index];
rows.Remove(row);
rows.Insert(index - 1, row);
dataGridViewValues.ClearSelection();
dataGridViewValues.Rows[index - 1].Cells[col].Selected = true;
}
}
}
private void buttonDown_Click(object sender, EventArgs e)
{
if (dataGridViewValues.SelectedCells.Count > 0)
{
int index = dataGridViewValues.SelectedCells[0].OwningRow.Index;
if (index < dataGridViewValues.Rows.Count - 2)
{
int col = dataGridViewValues.SelectedCells[0].OwningColumn.Index;
DataGridViewRowCollection rows = dataGridViewValues.Rows;
DataGridViewRow row = rows[index];
rows.Remove(row);
rows.Insert(index + 1, row);
dataGridViewValues.ClearSelection();
dataGridViewValues.Rows[index + 1].Cells[col].Selected = true;
}
}
}
private void buttonLoad_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(XmlFileName))
{
openFileDialog.Title = AppRes.dlgOpenTitle;
openFileDialog.InitialDirectory = InitialDirectory;
openFileDialog.FileName = "";
openFileDialog.Filter = AppRes.dlgFilter; //"xml files (*.xml)|*.xml|All files (*.*)|*.*"
openFileDialog.FilterIndex = 1;
openFileDialog.RestoreDirectory = true;
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
XmlFileName = openFileDialog.FileName;
LoadXML();
}
}
else
{
if (File.Exists(XmlFileName))
{
LoadXML();
}
else
{
MessageBox.Show(AppRes.msgBoxTxt001, AppRes.msgBoxCapt001, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
private void buttonSave_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(XmlFileName))
{
saveFileDialog.Title = AppRes.dlgSaveTitle;
saveFileDialog.InitialDirectory = InitialDirectory;
saveFileDialog.Filter = AppRes.dlgFilter; //"xml files (*.xml)|*.xml|All files (*.*)|*.*"
saveFileDialog.FilterIndex = 1;
saveFileDialog.RestoreDirectory = true;
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
SaveXML(XmlFileName);
}
}
else
{
SaveXML(XmlFileName);
}
}
private void buttonCleanup_Click(object sender, EventArgs e)
{
//Alle XML-Dateien auslesen die mit 'XmlFileName' beginnen
List<string> collectedXmlFiles = new List<string>();
collectedXmlFiles.AddRange(CollectAllFiles());
//Alle XML-Dateien aus der Liste auslesen die in 'Groups1' und 'Groups2' vorkommen
List<string> collectedPatternFiles = new List<string>();
collectedPatternFiles.AddRange(CollectPatternFiles(collectedXmlFiles));
//Alle XML-Dateien aus der Liste löschen, die in 'Groups1' und 'Groups2' nicht vorkommen
List<string> filesToDelete= new List<string>();
filesToDelete.AddRange(FilesToDelete(collectedXmlFiles, collectedPatternFiles));
if (filesToDelete.Count != 0)
{
try
{
foreach (string file in filesToDelete)
{
File.Delete(file);
}
MessageBox.Show(AppRes.msgBoxTxt005, AppRes.msgBoxCapt004, MessageBoxButtons.OK);
}
catch (Exception)
{
MessageBox.Show(AppRes.msgBoxTxt004, AppRes.msgBoxCapt002, MessageBoxButtons.OK);
}
}
}
private List<string> CollectAllFiles()
{
//Alle XML-Dateien auslesen die mit 'NXenvironment' beginnen
string path = System.IO.Path.GetDirectoryName(XMLfileName);
string[] origXmlFiles = Directory.GetFiles(path);
List<string> collectedXmlFiles = new List<string>();
for (int i = 0; i < origXmlFiles.Length; i++)
{
//origXmlFiles[i] = Path.GetFileName(origXmlFiles[i]);
if (System.IO.Path.GetFileName(origXmlFiles[i]).StartsWith(System.IO.Path.GetFileNameWithoutExtension(XMLfileName)))
{
collectedXmlFiles.Add(origXmlFiles[i]);
}
}
return collectedXmlFiles;
}
private List<string> CollectPatternFiles(List<string> collectedXmlFiles)
{
//Alle XML-Dateien aus der Liste auslesen die in 'Groups1' und 'Groups2' vorkommen
string tempFile = "";
List<string> tempFoundedFiles = new List<string>();
List<string> foundedFiles = new List<string>();
foreach (string file in collectedXmlFiles)
{
tempFile = (System.IO.Path.GetFileNameWithoutExtension(file)).Replace(System.IO.Path.GetFileNameWithoutExtension(XMLfileName) + "_", "");
foreach (var pattern1 in Groups1)
{
if (tempFile.StartsWith(pattern1))
{
tempFoundedFiles.Add(file); //Wenn der Anfang übereinstimmt, dann die Datei zur Liste hinzufügen
}
}
}
foreach (string file in tempFoundedFiles)
{
foreach (var pattern2 in Groups2)
{
if (System.IO.Path.GetFileNameWithoutExtension(file).EndsWith(pattern2))
{
foundedFiles.Add(file); //Wenn der Anfang übereinstimmt, dann die Datei zur Liste hinzufügen
}
}
}
return foundedFiles;
}
private List<string> FilesToDelete(List<string> collectedXmlFiles, List<string> collectedPatternFiles)
{
List<string> filesToDelete= new List<string>();
filesToDelete.AddRange(collectedXmlFiles);
if (collectedPatternFiles.Count == 0)
{
return collectedXmlFiles;
}
foreach (string pattern in collectedPatternFiles)
{
foreach (string file in collectedXmlFiles)
{
if (file == pattern)
{
filesToDelete.Remove(pattern);
}
}
}
return filesToDelete;
}
private void dataGridViewValues_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Delete)
{
selectedRow = dataGridViewValues.SelectedCells[0].RowIndex + 1; //Wenn die Zeile gelöscht wird, dann die Zeilennummer merken
}
}
private void dataGridViewValues_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
//Wenn die gelöschte Zeile den Standardwert enthielt, dann die WErte zurücksetzten, weil es keinen Standardwert mehr gibt
if (selectedRow == rowIndexColored)
{
StandardValue = 0; //Es gibt keine ausgewählte Standardzeile
standardValueSet = false; //es gibt keinen Standardwert
rowIndexColored = 0; //Es gibt keine umgefärbte Zeile
}
}
public void SetBasicValues()
{
Groups1 = ReadGroups(XMLgroup1FileName);
if (Groups1 != null)
{
comboBoxGroup1.Items.Clear();
for (int i = 0; i < Groups1.Length; i++)
{
comboBoxGroup1.Items.Add(Groups1[i]);
}
comboBoxGroup1.SelectedIndex = 0;
}
Groups2 = ReadGroups(XMLgroup2FileName);
if (Groups2 != null)
{
comboBoxGroup2.Items.Clear();
for (int i = 0; i < Groups2.Length; i++)
{
comboBoxGroup2.Items.Add(Groups2[i]);
}
comboBoxGroup2.SelectedIndex = 0;
}
}
private void LoadXML()
{
checkBoxEncryptValues.Checked = false;
var loadXML = new LoadXML();
loadXML.FileName = String.Concat(XMLfileName.Replace(".xml", ""), "_", Group1, "_", Group2, ".xml");
loadXML.Load();
string[] values = new string[loadXML.Values.Length];
values = loadXML.Values;
if (!String.IsNullOrEmpty(Group1) & !String.IsNullOrEmpty(Group2))
{
loadXML.Group = Group1 + "_" + Group2;
}
for (int i = 0; i < values.Length; i++)
{
if (values[i].StartsWith("$$$$"))
{
values[i] = Decrypt(values[i], Password);
checkBoxEncryptValues.Checked = true; //Wenn ein verschlüsseltes Element gefunden wurde, dann setzen
}
dataGridViewValues.Rows.Add(loadXML.Keys[i], values[i]);
}
dataGridViewValues.Refresh();
comboBoxGroup1.Text = loadXML.Group.Remove(loadXML.Group.LastIndexOf("_")); //Gruppe setzen
comboBoxGroup2.Text = loadXML.Group.Remove(0, loadXML.Group.LastIndexOf("_")); //Gruppe setzen
SetData("old"); //Die geladenen Daten setzten
}
private string[] LoadGroup()
{
string[] values = new string[comboBoxGroup1.Items.Count];
for (int i = 0; i < comboBoxGroup1.Items.Count; i++)
{
values[i] = comboBoxGroup1.Items[i].ToString();
}
for (int i = 0; i < values.Length; i++)
{
if (values[i].StartsWith("$$$$"))
{
values[i] = Decrypt(values[i], Password);
}
}
return values;
}
private void SaveXML(string xmlFileName)
{
if (!Directory.Exists(System.IO.Path.GetDirectoryName(xmlFileName)))
{
Directory.CreateDirectory(System.IO.Path.GetDirectoryName(xmlFileName)); //Wenn das Verzeichnis nicht existiert, dann erzeugen
}
int dgvLength = dataGridViewValues.RowCount - 1;
string[] keys = new string[dgvLength];
string value = "";
string[] values = new string[dgvLength];
for (int i = 0; i < dgvLength; i++)
{
if (checkBoxEncryptValues.Checked)
{
value = Encrypt(dataGridViewValues[1, i].Value.ToString(), Password); //Verschlüsselt
}
else
{
value = dataGridViewValues[1, i].Value.ToString(); //Unverschlüsselt
}
keys[i] = dataGridViewValues[0, i].Value.ToString(); ;
values[i] = value;
}
//Speichern
var saveXML = new SaveXML();
saveXML.FileName = xmlFileName;
saveXML.Topic = "NX-Portal"; //z.B. "NX-Portal"
saveXML.Group = comboBoxGroup1.Text; //z.B. "NX 1953"
saveXML.Keys = keys; //z.B. "UGII_ENV"
saveXML.Values = values; //z.B. "M:\ug\NX1953_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat"
saveXML.Save();
//OldNameData und OldValueDate schreiben
SetData("old");
}
private string Encrypt(string clearText, string password)
{
var crypt = new Cryption();
return String.Concat("$$$$", crypt.EncryptString(clearText, password));
}
private string Decrypt(string encryptedText, string password)
{
var crypt = new Cryption();
return crypt.DecryptString(encryptedText.Replace("$$$$", ""), password);
}
private void SetData(string stage)
{
int dgvLength = dataGridViewValues.RowCount - 1;
if (stage == "old")
{
//Old Data
List<string> oldNameData = new List<string>();
List<string> oldValueData = new List<string>();
for (int i = 0; i < dgvLength; i++)
{
oldNameData.Add(dataGridViewValues[0, i].Value.ToString());
oldValueData.Add(dataGridViewValues[1, i].Value.ToString());
}
OldNameData = oldNameData;
OldValueData = oldValueData;
OldEcryptStatus = checkBoxEncryptValues.Checked;
}
else
{
//New Data
List<string> newNameData = new List<string>();
List<string> newValueData = new List<string>();
for (int i = 0; i < dgvLength; i++)
{
newNameData.Add(dataGridViewValues[0, i].Value.ToString());
newValueData.Add(dataGridViewValues[1, i].Value.ToString());
}
NewNameData = newNameData;
NewValueData = newValueData;
NewEcryptStatus = checkBoxEncryptValues.Checked;
}
}
private bool HasAnyDataChanged()
{
int dgvLength = dataGridViewValues.RowCount - 1;
bool hasChanged = false;
if (OldNameData.Count != NewNameData.Count)
{
hasChanged = true;
}
else
{
for (int i = 0; i < dgvLength; i++)
{
if (OldNameData[i] != NewNameData[i])
{
hasChanged = true;
}
if (OldValueData[i] != NewValueData[i])
{
hasChanged = true;
}
if (OldEcryptStatus != NewEcryptStatus)
{
hasChanged = true;
}
}
}
return hasChanged;
}
/// <summary>
/// Reads the groups from a XML file
/// </summary>
private string[] ReadGroups(string xmlFileName)
{
if (File.Exists(xmlFileName))
{
var sivco = new SingleValueControl();
sivco.XMLfileName = xmlFileName;
sivco.Password = Password;
return sivco.GetValues();
}
else
{
return null;
}
}
/// <summary>
/// Sets a customer width of the user control
/// </summary>
/// <param name="width">The width. Min=316, Max=800</param>
public void SetDialogWidth(int width)
{
if (width >= this.MinimumSize.Width && width <= this.MaximumSize.Width)
{
this.Width = width;
int dif = width - 316;
if (dif > 0)
{
dataGridViewValues.Columns[0].Width += dif / 2;
}
}
}
/// <summary>
/// Sets a customer height of the user control
/// </summary>
/// <param name="height">The width. Min=227, Max=460</param>
public void SetDialogHeight(int height)
{
if (height >= this.MinimumSize.Height && height <= this.MaximumSize.Height)
{
this.Height = height;
}
}
}
}

View File

@ -0,0 +1,101 @@
<?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>{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Eugen.ESystem.Windows.Forms</RootNamespace>
<AssemblyName>hedmvalcon</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>false</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="hecryption">
<HintPath>..\..\..\_DLL\Cryption.git\Cryption\bin\Debug\hecryption.dll</HintPath>
</Reference>
<Reference Include="hesvalcon">
<HintPath>..\..\SingleValueControl.git\SingleValueControl\bin\Debug\hesvalcon.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework" />
<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.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="LoadXML.cs" />
<Compile Include="Properties\AppResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>AppResources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SaveXML.cs" />
<Compile Include="DuoMultiValueControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="DuoMultiValueControl.Designer.cs">
<DependentUpon>DuoMultiValueControl.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DuoMultiValueControl.resx">
<DependentUpon>DuoMultiValueControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\AppResources.de.resx" />
<EmbeddedResource Include="Properties\AppResources.en.resx" />
<EmbeddedResource Include="Properties\AppResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="DuoMultiValueControl.de.resx">
<DependentUpon>DuoMultiValueControl.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\Pfeil_oben.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Pfeil_unten.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,151 @@
<?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>
<data name="buttonCleanup.Text" xml:space="preserve">
<value>Bereinigen</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="checkBoxEncryptValues.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 22</value>
</data>
<data name="checkBoxEncryptValues.Size" type="System.Drawing.Size, System.Drawing">
<value>73, 17</value>
</data>
<data name="checkBoxEncryptValues.Text" xml:space="preserve">
<value>Chiffrieren</value>
</data>
<data name="buttonSave.Text" xml:space="preserve">
<value>Speichern</value>
</data>
<data name="buttonLoad.Text" xml:space="preserve">
<value>Laden</value>
</data>
<data name="ColumnValue.HeaderText" xml:space="preserve">
<value>Alle Werte</value>
</data>
<data name="labelGroup.Size" type="System.Drawing.Size, System.Drawing">
<value>42, 13</value>
</data>
<data name="labelGroup.Text" xml:space="preserve">
<value>Gruppe</value>
</data>
<data name="groupBoxValueControl.Text" xml:space="preserve">
<value>Werte Steuerung</value>
</data>
</root>

View File

@ -0,0 +1,126 @@
<?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>
<metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>150, 17</value>
</metadata>
</root>

View File

@ -0,0 +1,85 @@
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 Eugen.ESystem.Windows.Forms
{
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 1953"
public string[] Keys { get; set; } //z.B. "UGII_ENV"
public string[] Values { get; set; } //z.B. "M:\ug\NX1953_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat"
public void Load()
{
// Das Dokument in eine neue XElement-Instanz laden
XElement rootElement = XElement.Load(FileName);
// Auflistung für die Gruppe erzeugen
List<Topics> groups = new List<Topics>();
//Alle groups-Elemente einlesen und durchgehen
//var personElements = rootElement.Elements(Group1);
var groupElements = rootElement.Elements();
int i = 0;
string[] temp = new string[5];
List<string> lkeys = new List<string>();
List<string> lvalues = new List<string>();
foreach (var groupElement in groupElements)
{
temp = groupElement.ToString().Split(' ');
if (String.IsNullOrEmpty(Group))
{
Group = ExtractGroup(temp);
}
lkeys.Add(ExtractKey(temp));
lvalues.Add(ExtractValue(temp));
i++;
}
string[] keys = new string[lkeys.Count];
string[] values = new string[lvalues.Count];
for (int j = 0; j < lkeys.Count; j++)
{
keys[j] = lkeys[j];
values[j] = lvalues[j];
}
Keys = keys;
Values = values;
}
private string ExtractGroup(string[] temp)
{
return temp[0].Remove(0, 1);
}
private string ExtractKey(string[] temp)
{
return temp[1].Remove(temp[1].IndexOf("="));
}
private string ExtractValue(string[] temp)
{
return temp[1].Remove(0, temp[1].IndexOf("=") + 1).Replace("\"", "");
}
}
class Topics
{
public string Key;
public string Value;
}
}

View File

@ -0,0 +1,92 @@
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 Eugen.ESystem.Windows.Forms
{
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 string Standard { get; set; } //z.B. "yes"
public void Load()
{
// Das Dokument in eine neue XElement-Instanz laden
XElement rootElement = XElement.Load(@"C:\Temp\Test\Test.xml");
// 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)
{
//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.Version = keyAttribut.Value;
}
//Standard-Element suchen und speichern
XAttribute standardAttribut = groupElement.Attribute("Standard");
if (standardAttribut != null)
{
group.Standard = standardAttribut.Value;
}
}
}
public void LoadData()
{
//XElement zum Lesen erzeugen
XElement personsXML = XElement.Load(FileName);
//XDocument personsXML = XDocument.Load(FileName);
//Alle Aliens abfragen
var persons =
from person in personsXML.Descendants("person")
where person.Element("type").Value == "Alien"
select new
{
Id = (int)person.Attribute("id"),
FirstName = person.Element("firstname").Value,
LastName = person.Element("lastname").Value
};
//Die abgefragten Personen durchgehen und derern Daten ausgeben
foreach (var person in persons)
{
//TODO:
}
}
}
class Topics
{
public string Id;
public string Version;
public string Standard;
}
}

View File

@ -0,0 +1,182 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Eugen.ESystem.Windows.Forms.Properties {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class AppResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppResources() {
}
/// <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 (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Windows.Forms.Properties.AppResources", typeof(AppResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, 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;
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die xml files (*.xml)|*.xml|All files (*.*)|*.* ähnelt.
/// </summary>
internal static string dlgFilter {
get {
return ResourceManager.GetString("dlgFilter", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Open XML file ähnelt.
/// </summary>
internal static string dlgOpenTitle {
get {
return ResourceManager.GetString("dlgOpenTitle", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Save XML file ähnelt.
/// </summary>
internal static string dlgSaveTitle {
get {
return ResourceManager.GetString("dlgSaveTitle", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Error ähnelt.
/// </summary>
internal static string msgBoxCapt001 {
get {
return ResourceManager.GetString("msgBoxCapt001", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Warning ähnelt.
/// </summary>
internal static string msgBoxCapt002 {
get {
return ResourceManager.GetString("msgBoxCapt002", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Question ähnelt.
/// </summary>
internal static string msgBoxCapt003 {
get {
return ResourceManager.GetString("msgBoxCapt003", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Information ähnelt.
/// </summary>
internal static string msgBoxCapt004 {
get {
return ResourceManager.GetString("msgBoxCapt004", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die File not found! ähnelt.
/// </summary>
internal static string msgBoxTxt001 {
get {
return ResourceManager.GetString("msgBoxTxt001", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die No configuration file exists yet for this selection.
///Values have to be defined and saved first. ähnelt.
/// </summary>
internal static string msgBoxTxt002 {
get {
return ResourceManager.GetString("msgBoxTxt002", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Should the values be saved? ähnelt.
/// </summary>
internal static string msgBoxTxt003 {
get {
return ResourceManager.GetString("msgBoxTxt003", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Data was found, but the cleanup
///could not be completed successfully. ähnelt.
/// </summary>
internal static string msgBoxTxt004 {
get {
return ResourceManager.GetString("msgBoxTxt004", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Data was successfully cleaned. ähnelt.
/// </summary>
internal static string msgBoxTxt005 {
get {
return ResourceManager.GetString("msgBoxTxt005", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die The file was saved successfully. ähnelt.
/// </summary>
internal static string msgBoxTxt006 {
get {
return ResourceManager.GetString("msgBoxTxt006", resourceCulture);
}
}
}
}

View File

@ -0,0 +1,161 @@
<?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>
<data name="dlgFilter" xml:space="preserve">
<value>xml Datei (*.xml)|*.xml|Alle Dateien (*.*)|*.*</value>
</data>
<data name="dlgOpenTitle" xml:space="preserve">
<value>Öffne XML Datei</value>
</data>
<data name="dlgSaveTitle" xml:space="preserve">
<value>Speichere XML Datei</value>
</data>
<data name="msgBoxCapt001" xml:space="preserve">
<value>Fehler</value>
</data>
<data name="msgBoxCapt002" xml:space="preserve">
<value>Warnung</value>
</data>
<data name="msgBoxCapt003" xml:space="preserve">
<value>Frage</value>
</data>
<data name="msgBoxCapt004" xml:space="preserve">
<value>Information</value>
</data>
<data name="msgBoxTxt001" xml:space="preserve">
<value>Datei wurde nicht gefunden!</value>
</data>
<data name="msgBoxTxt002" xml:space="preserve">
<value>Für diese Auswahl existiert noch keine Konfigurationsdatei.
Es müssen erst noch Werte definiert und gespeichert werden.</value>
</data>
<data name="msgBoxTxt003" xml:space="preserve">
<value>Sollen die Werte gespeichert werden?</value>
</data>
<data name="msgBoxTxt004" xml:space="preserve">
<value>Daten wurden gefunden, aber die Bereinigung
konnte nicht erfolgreich beendet werden.</value>
</data>
<data name="msgBoxTxt005" xml:space="preserve">
<value>Daten wurden erfolgreich bereinigt.</value>
</data>
<data name="msgBoxTxt006" xml:space="preserve">
<value>Die Datei wurde erfolgreich gespeichert.</value>
</data>
</root>

View File

@ -0,0 +1,161 @@
<?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>
<data name="dlgFilter" xml:space="preserve">
<value>xml files (*.xml)|*.xml|All files (*.*)|*.*</value>
</data>
<data name="dlgOpenTitle" xml:space="preserve">
<value>Open XML file</value>
</data>
<data name="dlgSaveTitle" xml:space="preserve">
<value>Save XML file</value>
</data>
<data name="msgBoxCapt001" xml:space="preserve">
<value>Error</value>
</data>
<data name="msgBoxCapt002" xml:space="preserve">
<value>Warning</value>
</data>
<data name="msgBoxCapt003" xml:space="preserve">
<value>Question</value>
</data>
<data name="msgBoxCapt004" xml:space="preserve">
<value>Information</value>
</data>
<data name="msgBoxTxt001" xml:space="preserve">
<value>File not found!</value>
</data>
<data name="msgBoxTxt002" xml:space="preserve">
<value>No configuration file exists yet for this selection.
Values have to be defined and saved first.</value>
</data>
<data name="msgBoxTxt003" xml:space="preserve">
<value>Should the values be saved?</value>
</data>
<data name="msgBoxTxt004" xml:space="preserve">
<value>Data was found, but the cleanup
could not be completed successfully.</value>
</data>
<data name="msgBoxTxt005" xml:space="preserve">
<value>Data was successfully cleaned.</value>
</data>
<data name="msgBoxTxt006" xml:space="preserve">
<value>The file was saved successfully.</value>
</data>
</root>

View File

@ -0,0 +1,161 @@
<?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>
<data name="dlgFilter" xml:space="preserve">
<value>xml files (*.xml)|*.xml|All files (*.*)|*.*</value>
</data>
<data name="dlgOpenTitle" xml:space="preserve">
<value>Open XML file</value>
</data>
<data name="dlgSaveTitle" xml:space="preserve">
<value>Save XML file</value>
</data>
<data name="msgBoxCapt001" xml:space="preserve">
<value>Error</value>
</data>
<data name="msgBoxCapt002" xml:space="preserve">
<value>Warning</value>
</data>
<data name="msgBoxCapt003" xml:space="preserve">
<value>Question</value>
</data>
<data name="msgBoxCapt004" xml:space="preserve">
<value>Information</value>
</data>
<data name="msgBoxTxt001" xml:space="preserve">
<value>File not found!</value>
</data>
<data name="msgBoxTxt002" xml:space="preserve">
<value>No configuration file exists yet for this selection.
Values have to be defined and saved first.</value>
</data>
<data name="msgBoxTxt003" xml:space="preserve">
<value>Should the values be saved?</value>
</data>
<data name="msgBoxTxt004" xml:space="preserve">
<value>Data was found, but the cleanup
could not be completed successfully.</value>
</data>
<data name="msgBoxTxt005" xml:space="preserve">
<value>Data was successfully cleaned.</value>
</data>
<data name="msgBoxTxt006" xml:space="preserve">
<value>The file was saved successfully.</value>
</data>
</root>

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("DuoMultiValueControl")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DuoMultiValueControl")]
[assembly: AssemblyCopyright("Copyright © 2023 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("65c7f0f6-b8ca-4c1d-9c68-ed98fc2d31a1")]
// 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,83 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Eugen.ESystem.Windows.Forms.Properties {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <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 (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Windows.Forms.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, 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;
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Pfeil_oben {
get {
object obj = ResourceManager.GetObject("Pfeil_oben", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Pfeil_unten {
get {
object obj = ResourceManager.GetObject("Pfeil_unten", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -0,0 +1,127 @@
<?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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Pfeil_oben" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Pfeil_oben.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Pfeil_unten" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Pfeil_unten.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

View File

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using AppRes = Eugen.ESystem.Windows.Forms.Properties.AppResources;
namespace Eugen.ESystem.Windows.Forms
{
internal class SaveXML
{
public string FileName { get; set; }
public string Topic = ""; //z.B. "NX-Portal"
public string Group { get; set; } //z.B. "NX 1953"
public string[] Keys { get; set; } //z.B. "UGII_ENV"
public string[] Values { get; set; } //z.B. "M:\ug\NX1953_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat"
public void Save()
{
//Namensraum definieren
XNamespace ns = "https://www.engelglobal.com/de/at/index.html";
//Wurzelelement erzeugen
XElement rootElement = new XElement(ns + Topic);
//Namensraum als Attribut angeben
rootElement.Add(new XAttribute("xmlns", ns));
//Der Wert
for (int i = 0; i < Values.Length; i++)
{
XElement groupElement = new XElement(ns + Group.Replace(" ", "_"));
groupElement.Add(new XAttribute(Keys[i], Values[i]));
rootElement.Add(groupElement);
}
rootElement.Save(FileName);
MessageBox.Show(AppRes.msgBoxTxt006, AppRes.msgBoxCapt004, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}

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,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 @@
4716fdd361cd2452777470d9e602bb02288864a1

View File

@ -0,0 +1,24 @@
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hedmvalcon.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hedmvalcon.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\de\hedmvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\en\hedmvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hecryption.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hesvalcon.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hecryption.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\hesvalcon.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\de\hesvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\bin\Debug\en\hesvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\DuoMultiValueControl.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.DuoMultiValueControl.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.Resources.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.de.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.en.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\Eugen.ESystem.Windows.Forms.DuoMultiValueControl.de.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\DuoMultiValueControl.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\DuoMultiValueControl.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\de\hedmvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\en\hedmvalcon.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\DuoMultiValueControl.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\hedmvalcon.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\DuoMultiValueControl\obj\Debug\hedmvalcon.pdb

View File

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

Binary file not shown.

Binary file not shown.

6
HE-Test_Dll/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>

134
HE-Test_Dll/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,134 @@
namespace HE_Test_Dll1
{
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.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.duoMultiValueControl = new Eugen.ESystem.Windows.Forms.DuoMultiValueControl();
this.groupBoxProgramInfo.SuspendLayout();
this.groupBoxDLLInfo.SuspendLayout();
this.SuspendLayout();
//
// 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 = "...";
//
// duoMultiValueControl
//
this.duoMultiValueControl.AlwaysEncrypted = false;
this.duoMultiValueControl.CheckBoxEncryptValueText = "Encrypt";
this.duoMultiValueControl.Group1 = null;
this.duoMultiValueControl.Group2 = null;
this.duoMultiValueControl.GroupName1 = "Group1 1";
this.duoMultiValueControl.GroupName2 = "Group1 2";
this.duoMultiValueControl.Groups1 = null;
this.duoMultiValueControl.Groups2 = null;
this.duoMultiValueControl.InitialDirectory = "C:\\";
this.duoMultiValueControl.Key = null;
this.duoMultiValueControl.Location = new System.Drawing.Point(13, 13);
this.duoMultiValueControl.MaximumSize = new System.Drawing.Size(800, 460);
this.duoMultiValueControl.MinimumSize = new System.Drawing.Size(316, 227);
this.duoMultiValueControl.Name = "duoMultiValueControl";
this.duoMultiValueControl.Password = null;
this.duoMultiValueControl.Size = new System.Drawing.Size(316, 227);
this.duoMultiValueControl.TabIndex = 13;
this.duoMultiValueControl.TableKeyName = "Variable Name";
this.duoMultiValueControl.TableValueName = "Variable Value";
this.duoMultiValueControl.Topic = "Topic";
this.duoMultiValueControl.ValueControlName = "Value control";
this.duoMultiValueControl.XMLfileName = null;
this.duoMultiValueControl.XMLgroup1FileName = null;
this.duoMultiValueControl.XMLgroup2FileName = null;
//
// 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.duoMultiValueControl);
this.Controls.Add(this.groupBoxProgramInfo);
this.Controls.Add(this.groupBoxDLLInfo);
this.Name = "Form1";
this.Text = "Test_InfoBox";
this.Load += new System.EventHandler(this.Form1_Load);
this.groupBoxProgramInfo.ResumeLayout(false);
this.groupBoxProgramInfo.PerformLayout();
this.groupBoxDLLInfo.ResumeLayout(false);
this.groupBoxDLLInfo.PerformLayout();
this.ResumeLayout(false);
}
#endregion
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 Eugen.ESystem.Windows.Forms.DuoMultiValueControl duoMultiValueControl;
}
}

146
HE-Test_Dll/Form1.cs Normal file
View File

@ -0,0 +1,146 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Eugen.ESystem.Windows.Forms;
namespace HE_Test_Dll1
{
public partial class Form1 : Form
{
#region Version und Copyright
// Keys und Copyright
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
static object[] attributes = System.Reflection.Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
string copyright = GenerateCopyright();
string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit
static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString();
string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime()
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
return buildDateTime;
}
private static string CurrentYear()
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
private static string StartYear()
{
//string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
//return startYear.Remove(0, startYear.LastIndexOf(" ") + 1);
string startYear = "";
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
{
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
while (startYear.StartsWith(" "))
{
startYear = startYear.Remove(0, 1);
}
startYear = startYear.Remove(startYear.IndexOf(" "));
return startYear;
}
else
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
}
private static string GenerateCopyright()
{
string startYear = StartYear();
string currentYear = CurrentYear();
if (startYear == currentYear)
{
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
else
{
//return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear);
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
}
}
#endregion
#region Programm-Info
/// <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, Keys und Copyright setzen
ProgramName = programName;
ProgramVersion = programVersion;
Copyright = copyright;
}
#endregion
public Form1()
{
SetProgramInfo();
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
labelProgramInfo.Text = String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", Copyright); // Zeigt die Programm-Information an
labelDLLInfo.Text = String.Concat(DuoMultiValueControl.DllName, "\r\n", DuoMultiValueControl.DllVersion, "\r\n", DuoMultiValueControl.Copyright); // Zeigt die DLL-Information an
ExecuteControl();
}
private void ExecuteControl()
{
duoMultiValueControl.Password = "Test";
duoMultiValueControl.InitialDirectory = @"C:\Temp\Test";
duoMultiValueControl.XMLfileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\Daten\NXenvironment.xml";
//duoMultiValueControl.XMLgroup1FileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\SingleValueControl.git\Daten\Test1.xml";
duoMultiValueControl.XMLgroup1FileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\Daten\NxVersions.xml";
//duoMultiValueControl.XMLgroup2FileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\SingleValueControl.git\Daten\Test2.xml";
duoMultiValueControl.XMLgroup2FileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\DuoMultiValueControl.git\Daten\Group.xml";
duoMultiValueControl.ValueControlName = "My XML Control";
duoMultiValueControl.Topic = "NX-Portal";
duoMultiValueControl.GroupName1 = "MyGroup1";
duoMultiValueControl.GroupName2 = "MyGroup2";
//duoMultiValueControl.Group1 = "NX_2212"; //Belegt die Gruppe vor. Darf kein Leerzeichen enthalten
//duoMultiValueControl.Group2 = "CAD"; //Belegt die Gruppe vor. Darf kein Leerzeichen enthalten
duoMultiValueControl.TableKeyName = "MyVarName";
duoMultiValueControl.TableValueName = "MyValue";
//duoMultiValueControl.AlwaysEncrypted = true; //Alle Werte werden immer Verschlüsselt
duoMultiValueControl.SetDialogWidth(600); //Der Dialog kann zwischen 316 und 800 breit sein
duoMultiValueControl.SetDialogHeight(300); //Der Dialog kann zwischen 227 und 460 hoch sein
duoMultiValueControl.SetBasicValues(); //Die übergebenen Werte anzeigen
}
}
}

120
HE-Test_Dll/Form1.resx Normal file
View 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>

View File

@ -0,0 +1,105 @@
<?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>{2B71D20F-009D-4089-8C69-98DCCFADF932}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>HE_Test_Dll1</RootNamespace>
<AssemblyName>HE-Test_Dll</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic>
<TargetFrameworkProfile />
</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>
<Prefer32Bit>false</Prefer32Bit>
</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>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="hecryption, Version=1.0.8276.15006, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\_DLL\Cryption.git\Cryption\bin\Debug\hecryption.dll</HintPath>
</Reference>
<Reference Include="hedmvalcon">
<HintPath>..\DuoMultiValueControl\bin\Debug\hedmvalcon.dll</HintPath>
</Reference>
<Reference Include="hesvalcon, Version=1.0.8389.31218, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\SingleValueControl.git\SingleValueControl\bin\Debug\hesvalcon.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<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="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>
<DesignTime>True</DesignTime>
</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>
<ItemGroup>
<ProjectReference Include="..\DuoMultiValueControl\DuoMultiValueControl.csproj">
<Project>{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}</Project>
<Name>SelectionDuoValueControl</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

22
HE-Test_Dll/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 HE_Test_Dll1
{
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("HE_Test_Dll")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HE_Test_Dll")]
[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("2b71d20f-009d-4089-8c69-98dccfadf932")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HE_Test_Dll1.Properties {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <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 (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HE_Test_Dll1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, 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,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HE_Test_Dll1.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.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.

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.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More