commit bf4681b191202a38de8171724d6dd471a7338d29 Author: Eugen Höglinger Date: Thu Feb 2 14:55:20 2023 +0100 Initialize - 'User Control' - Zum Setzten einer Wahrheitstabelle für unterschiedliche Anwender diff --git a/.vs/TruthTableControl/FileContentIndex/875d17ee-38ac-407a-8c5d-8caf853538f9.vsidx b/.vs/TruthTableControl/FileContentIndex/875d17ee-38ac-407a-8c5d-8caf853538f9.vsidx new file mode 100644 index 0000000..a72386b Binary files /dev/null and b/.vs/TruthTableControl/FileContentIndex/875d17ee-38ac-407a-8c5d-8caf853538f9.vsidx differ diff --git a/.vs/TruthTableControl/FileContentIndex/read.lock b/.vs/TruthTableControl/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/TruthTableControl/v17/.suo b/.vs/TruthTableControl/v17/.suo new file mode 100644 index 0000000..7ddb484 Binary files /dev/null and b/.vs/TruthTableControl/v17/.suo differ diff --git a/Daten/Pfeil_links.png b/Daten/Pfeil_links.png new file mode 100644 index 0000000..c8aa72b Binary files /dev/null and b/Daten/Pfeil_links.png differ diff --git a/Daten/Pfeil_oben.png b/Daten/Pfeil_oben.png new file mode 100644 index 0000000..b256203 Binary files /dev/null and b/Daten/Pfeil_oben.png differ diff --git a/Daten/Pfeil_rechts.png b/Daten/Pfeil_rechts.png new file mode 100644 index 0000000..0881380 Binary files /dev/null and b/Daten/Pfeil_rechts.png differ diff --git a/Daten/Pfeil_unten.png b/Daten/Pfeil_unten.png new file mode 100644 index 0000000..10ec1a8 Binary files /dev/null and b/Daten/Pfeil_unten.png differ diff --git a/Daten/Thumbs.db b/Daten/Thumbs.db new file mode 100644 index 0000000..01c868a Binary files /dev/null and b/Daten/Thumbs.db differ diff --git a/Daten/TruthTable_MenuHelp.xml b/Daten/TruthTable_MenuHelp.xml new file mode 100644 index 0000000..a1df539 --- /dev/null +++ b/Daten/TruthTable_MenuHelp.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/HE-Test_Dll/App.config b/HE-Test_Dll/App.config new file mode 100644 index 0000000..d0f8440 --- /dev/null +++ b/HE-Test_Dll/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/HE-Test_Dll/Form1.Designer.cs b/HE-Test_Dll/Form1.Designer.cs new file mode 100644 index 0000000..08b3d5a --- /dev/null +++ b/HE-Test_Dll/Form1.Designer.cs @@ -0,0 +1,144 @@ +namespace HE_Test_Dll1 +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.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.truthTableControl = new Eugen.ESystem.Windows.Forms.TruthTableControl(); + 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 = "..."; + // + // truthTableControl + // + this.truthTableControl.AlwaysEncrypted = false; + this.truthTableControl.CheckBoxEncryptValueText = "Encrypt"; + this.truthTableControl.Group = null; + this.truthTableControl.GroupName = "Group"; + this.truthTableControl.Groups = null; + this.truthTableControl.InitialDirectory = "C:\\"; + this.truthTableControl.Location = new System.Drawing.Point(12, 13); + this.truthTableControl.MaximumSize = new System.Drawing.Size(1600, 227); + this.truthTableControl.MinimumSize = new System.Drawing.Size(1100, 227); + this.truthTableControl.Name = "truthTableControl"; + this.truthTableControl.Password = null; + this.truthTableControl.Size = new System.Drawing.Size(1200, 227); + this.truthTableControl.TabIndex = 13; + this.truthTableControl.TableKeyName = "Variable Name"; + this.truthTableControl.TableValue1_1Name = "Visible"; + this.truthTableControl.TableValue1_2Name = "Enable"; + this.truthTableControl.TableValue2_1Name = "Visible"; + this.truthTableControl.TableValue2_2Name = "Enable"; + this.truthTableControl.TableValue3_1Name = "Visible"; + this.truthTableControl.TableValue3_2Name = "Enable"; + this.truthTableControl.TableValue4_1Name = "Visible"; + this.truthTableControl.TableValue4_2Name = "Enable"; + this.truthTableControl.TableValue5_1Name = "Visible"; + this.truthTableControl.TableValue5_2Name = "Enable"; + this.truthTableControl.TableValue6_1Name = "Visible"; + this.truthTableControl.TableValue6_2Name = "Enable"; + this.truthTableControl.TableValue7_1Name = "Visible"; + this.truthTableControl.TableValue7_2Name = "Enable"; + this.truthTableControl.TableValue8_1Name = "Visible"; + this.truthTableControl.TableValue8_2Name = "Enable"; + this.truthTableControl.Topic = "Topic"; + this.truthTableControl.ValueControlName = "Value control"; + this.truthTableControl.XMLfileName = null; + this.truthTableControl.XMLgroupFileName = null; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1222, 450); + this.Controls.Add(this.truthTableControl); + 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.TruthTableControl truthTableControl; + } +} + diff --git a/HE-Test_Dll/Form1.cs b/HE-Test_Dll/Form1.cs new file mode 100644 index 0000000..e61fd54 --- /dev/null +++ b/HE-Test_Dll/Form1.cs @@ -0,0 +1,377 @@ +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 + /// + /// Contains the name of the program file + /// + public static string ProgramName { set; get; } + + /// + /// Contains the version of the program file + /// + public static string ProgramVersion { set; get; } + + /// + /// Contains the copyright notice + /// + public static string Copyright { set; get; } + + private void SetProgramInfo() + { + //Name, 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(TruthTableControl.DllName, "\r\n", TruthTableControl.DllVersion, "\r\n", TruthTableControl.Copyright); // Zeigt die DLL-Information an + + ExecuteControl(); + } + + private void ExecuteControl() + { + truthTableControl.Password = "Test"; + truthTableControl.InitialDirectory = @"C:\Temp\Test"; + truthTableControl.XMLfileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\Daten\TruthTable.xml"; + //truthTableControl.XMLgroupFileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\SingleValueControl.git\Daten\Test.xml"; + //truthTableControl.XMLgroupFileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\Daten\NxVersions.xml"; + truthTableControl.ValueControlName = "My XML TruthTableControl"; + truthTableControl.Topic = "NX-Portal"; + truthTableControl.GroupName = "Area"; + truthTableControl.Group = "InterfaceNxPortal"; //Belegt die Gruppe vor, die als erstes angezeigt wird. Darf kein Leerzeichen enthalten. Es muss auch 'Groups' definert werden + string[] groups = { "InterfaceNxPortal", "MenuAction", "MenuTools", "MenuInformations", "MenuPreferences", "MenuHelp" }; + truthTableControl.Groups = groups; //Belegt die Gruppen vor. Darf kein Leerzeichen enthalten. Es muss auch 'Group' definiert werden + //truthTableControl.User1Label = "Administrator"; //Belegt den Anwenderlevel vor + //truthTableControl.User2Label = "Developer"; //Belegt den Anwenderlevel vor + //truthTableControl.User3Label = "Key User"; //Belegt den Anwenderlevel vor + //truthTableControl.User4Label = "Advanced User"; //Belegt den Anwenderlevel vor + //truthTableControl.User5Label = "User"; //Belegt den Anwenderlevel vor + //truthTableControl.User6Label = "Trainee"; //Belegt den Anwenderlevel vor + //truthTableControl.User7Label = "Guest"; //Belegt den Anwenderlevel vor + //truthTableControl.User8Label = "Supplier"; //Belegt den Anwenderlevel vor + //truthTableControl.TableKeyName = "Function"; //Belegt den Tabellenkopf0 vor + //truthTableControl.TableValue1_1Name = "Visible"; //Belegt den Tabellenkopf1_1 vor + //truthTableControl.TableValue1_2Name = "Enable"; //Belegt den Tabellenkopf1_2 vor + //truthTableControl.TableValue2_1Name = "Visible"; //Belegt den Tabellenkopf2_1 vor + //truthTableControl.TableValue2_2Name = "Enable"; //Belegt den Tabellenkopf2_2 vor + //truthTableControl.TableValue3_1Name = "Visible"; //Belegt den Tabellenkopf3_1 vor + //truthTableControl.TableValue3_2Name = "Enable"; //Belegt den Tabellenkopf3_2 vor + //truthTableControl.TableValue4_1Name = "Visible"; //Belegt den Tabellenkopf4_1 vor + //truthTableControl.TableValue4_2Name = "Enable"; //Belegt den Tabellenkopf4_2 vor + //truthTableControl.TableValue5_1Name = "Visible"; //Belegt den Tabellenkopf51_1 vor + //truthTableControl.TableValue5_2Name = "Enable"; //Belegt den Tabellenkopf5_2 vor + //truthTableControl.TableValue6_1Name = "Visible"; //Belegt den Tabellenkopf6_1 vor + //truthTableControl.TableValue6_2Name = "Enable"; //Belegt den Tabellenkopf6_2 vor + //truthTableControl.TableValue7_1Name = "Visible"; //Belegt den Tabellenkopf7_1 vor + //truthTableControl.TableValue7_2Name = "Enable"; //Belegt den Tabellenkopf7_2 vor + //truthTableControl.TableValue8_1Name = "Visible"; //Belegt den Tabellenkopf8_1 vor + //truthTableControl.TableValue8_2Name = "Enable"; //Belegt den Tabellenkopf8_2 vor + + //'InterfaceNxPortal' + List interfaceNxPortal = new List(); + var interfaceGroupBoxSystem = new TableRow("GroupBoxSystem", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceLabelDataManagement = new TableRow("LabelDataManagement", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceComboBoxDataManagement = new TableRow("ComboBoxDataManagement", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceLabelNxVersion = new TableRow("LabelNxVersion", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceComboBoxVersion = new TableRow("ComboBoxVersion", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceLabelLanguage = new TableRow("LabelLanguage", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceComboBoxLanguage = new TableRow("ComboBoxLanguage", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceGroupBoxEnvironment = new TableRow("GroupBoxEnvironment", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceLabelGroup = new TableRow("LabelGroup", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceComboBoxGroup = new TableRow("ComboBoxGroup", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceLabelProject = new TableRow("LabelProject", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceComboBoxProject = new TableRow("ComboBoxProject", true, true, true, true, true, false, true, false, true, false, false, false, false, false, false, false); + var interfaceGroupBoxAltPatDir = new TableRow("GroupBoxAltPatDir", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceCheckBoxRemeberAltPatDir = new TableRow("CheckBoxRemeberAltPatDir", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceTextBoxAltPatDirectory = new TableRow("TextBoxAltPatDirectory", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceButtonAltPatDir = new TableRow("ButtonAltPatDir", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceGroupBoxAltEnvFile = new TableRow("GroupBoxAltEnvFile", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceCheckBoxRememberAltEnvFile = new TableRow("CheckBoxRememberAltEnvFile", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceTextBoxAltEnvFile = new TableRow("TextBoxAltEnvFile", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceButtonAltEnvFile = new TableRow("ButtonAltEnvFile", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceButtonStart = new TableRow("ButtonStart", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var interfaceButtonCancel = new TableRow("ButtonCancel", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + + interfaceNxPortal.Add(interfaceGroupBoxSystem); + interfaceNxPortal.Add(interfaceLabelDataManagement); + interfaceNxPortal.Add(interfaceComboBoxDataManagement); + interfaceNxPortal.Add(interfaceLabelNxVersion); + interfaceNxPortal.Add(interfaceComboBoxVersion); + interfaceNxPortal.Add(interfaceLabelLanguage); + interfaceNxPortal.Add(interfaceComboBoxLanguage); + interfaceNxPortal.Add(interfaceGroupBoxEnvironment); + interfaceNxPortal.Add(interfaceLabelGroup); + interfaceNxPortal.Add(interfaceComboBoxGroup); + interfaceNxPortal.Add(interfaceLabelProject); + interfaceNxPortal.Add(interfaceComboBoxProject); + interfaceNxPortal.Add(interfaceGroupBoxAltPatDir); + interfaceNxPortal.Add(interfaceCheckBoxRemeberAltPatDir); + interfaceNxPortal.Add(interfaceTextBoxAltPatDirectory); + interfaceNxPortal.Add(interfaceButtonAltPatDir); + interfaceNxPortal.Add(interfaceGroupBoxAltEnvFile); + interfaceNxPortal.Add(interfaceCheckBoxRememberAltEnvFile); + interfaceNxPortal.Add(interfaceTextBoxAltEnvFile); + interfaceNxPortal.Add(interfaceButtonAltEnvFile); + interfaceNxPortal.Add(interfaceButtonStart); + interfaceNxPortal.Add(interfaceButtonCancel); + truthTableControl.InterfaceNxPortal = interfaceNxPortal; + + //Menu 'Action' + List menuAction = new List(); + var menuActionStart = new TableRow("Start", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuActionCancel = new TableRow("Cancel", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + + menuAction.Add(menuActionStart); + menuAction.Add(menuActionCancel); + truthTableControl.MenuAction = menuAction; + + //Menu 'Tools' + List menuTools = new List(); + var menuToolsInstead = new TableRow("Instead", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuToolsMB2OKl = new TableRow("MB2OK", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuToolsToolStripSeparatorT1 = new TableRow("ToolStripSeparatorT1", true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false); + var menuToolsCleanUp = new TableRow("CleanUp", true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false); + var menuToolsToolStripSeparatorT2 = new TableRow("ToolStripSeparatorT2", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuToolsDeployEnvironment = new TableRow("DeployEnvironment", true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false); + var menuToolsSynchronizeEnvironment = new TableRow("SynchronizeEnvironment", true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false); + + menuTools.Add(menuToolsInstead); + menuTools.Add(menuToolsMB2OKl); + menuTools.Add(menuToolsToolStripSeparatorT1); + menuTools.Add(menuToolsCleanUp); + menuTools.Add(menuToolsToolStripSeparatorT2); + menuTools.Add(menuToolsDeployEnvironment); + menuTools.Add(menuToolsSynchronizeEnvironment); + truthTableControl.MenuTools = menuTools; + + //Menu 'Information' + List menuInformation = new List(); + var menuInformationShowCurrentLogfile = new TableRow("ShowCurrentLogfile", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuInformationShowlastLogfile = new TableRow("ShowlastLogfile", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuInformationToolStripSeparatorI1 = new TableRow("ToolStripSeparatorI1", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuInformationShowCurrentNXLogfile = new TableRow("ShowCurrentNXLogfile", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuInformationShowLastNXLogfile = new TableRow("ShowLastNXLogfile", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuInformationToolStripSeparatorI2 = new TableRow("ToolStripSeparatorI2", false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var menuInformationShowCurrentTCLogfile = new TableRow("ShowCurrentTCLogfile", false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var menuInformationShowLastTCLogfile = new TableRow("ShowLastTCLogfile", false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + var menuInformationToolStripSeparatorI3 = new TableRow("ToolStripSeparatorI3", true, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true); + var menuInformationShowSavedConfiguration = new TableRow("ShowSavedConfiguratio", true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false); + + menuInformation.Add(menuInformationShowCurrentLogfile); + menuInformation.Add(menuInformationShowlastLogfile); + menuInformation.Add(menuInformationToolStripSeparatorI1); + menuInformation.Add(menuInformationShowCurrentNXLogfile); + menuInformation.Add(menuInformationShowLastNXLogfile); + menuInformation.Add(menuInformationToolStripSeparatorI2); + menuInformation.Add(menuInformationShowCurrentTCLogfile); + menuInformation.Add(menuInformationShowLastTCLogfile); + menuInformation.Add(menuInformationToolStripSeparatorI3); + menuInformation.Add(menuInformationShowSavedConfiguration); + truthTableControl.MenuInformations = menuInformation; + + //Menu 'Preferences' + List menuPreferences = new List(); + var menuPreferencesExecuteWithoutUserSupport = new TableRow("ExecuteWithoutUserSupport", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesToolStripSeparatorP1 = new TableRow("ToolStripSeparatorP1", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesLanguageNXPortal = new TableRow("LanguageNXPortal", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesLanguageNXPortalGerman = new TableRow("LanguageNXPortalGerman", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesLanguageNXPortalEnglish = new TableRow("LanguageNXPortalEnglish", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesLocation = new TableRow("Location", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationChangzhou = new TableRow("LocationChangzhou", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationDietach = new TableRow("LocationDietach", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationHagen = new TableRow("LocationHagen", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationKaplice = new TableRow("LocationKaplice", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationMexiko = new TableRow("LocationMexiko", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationShanghai = new TableRow("LocationShanghai", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationSchwertberg = new TableRow("LocationSchwertberg", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationValentin = new TableRow("LocationValentin", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationYork = new TableRow("LocationYork", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLocationSupplier = new TableRow("LocationSupplier", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesUserprofile = new TableRow("Userprofile", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesSuperUser = new TableRow("SuperUser", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesAdministrator = new TableRow("Administrator", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesDeveloper = new TableRow("Developer", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesKeyUser = new TableRow("KeyUser", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesAdvancedUser = new TableRow("AdvancedUser", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesUser = new TableRow("User", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesTrainee = new TableRow("Trainee", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesGuest = new TableRow("Guest", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesUsupplier = new TableRow("Usupplier", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesSystem = new TableRow("System", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesNx = new TableRow("Nx", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesDevelopmentNx = new TableRow("DevelopmentNx", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesProductivNx = new TableRow("ProductivNx", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesTestNx = new TableRow("TestNx", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesTrainingNx = new TableRow("TrainingNx", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesTc = new TableRow("Tc", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesDevelopmentTc = new TableRow("DevelopmentTc", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesProductivTc = new TableRow("ProductivTc", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesTestTc = new TableRow("TestTc", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesTrainingTc = new TableRow("TrainingTc", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuPreferencesToolStripSeparatorP2 = new TableRow("ToolStripSeparatorP2", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesLicenseBundle = new TableRow("LicenseBundle", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesNX11110 = new TableRow("NX11110", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesNX13300N = new TableRow("NX13300N", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesSC13500 = new TableRow("SC13500", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesTOTALMACH = new TableRow("TOTALMACH", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesToolStripSeparatorP3 = new TableRow("ToolStripSeparatorP3", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + var menuPreferencesConfiguration = new TableRow("Configuration", true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false); + + menuPreferences.Add(menuPreferencesExecuteWithoutUserSupport); + menuPreferences.Add(menuPreferencesToolStripSeparatorP1); + menuPreferences.Add(menuPreferencesLanguageNXPortal); + menuPreferences.Add(menuPreferencesLanguageNXPortalGerman); + menuPreferences.Add(menuPreferencesLanguageNXPortalEnglish); + menuPreferences.Add(menuPreferencesLocation); + menuPreferences.Add(menuPreferencesLocationChangzhou); + menuPreferences.Add(menuPreferencesLocationDietach); + menuPreferences.Add(menuPreferencesLocationDietach); + menuPreferences.Add(menuPreferencesLocationHagen); + menuPreferences.Add(menuPreferencesLocationKaplice); + menuPreferences.Add(menuPreferencesLocationMexiko); + menuPreferences.Add(menuPreferencesLocationShanghai); + menuPreferences.Add(menuPreferencesLocationSchwertberg); + menuPreferences.Add(menuPreferencesLocationValentin); + menuPreferences.Add(menuPreferencesLocationYork); + menuPreferences.Add(menuPreferencesLocationSupplier); + menuPreferences.Add(menuPreferencesUserprofile); + menuPreferences.Add(menuPreferencesSuperUser); + menuPreferences.Add(menuPreferencesAdministrator); + menuPreferences.Add(menuPreferencesDeveloper); + menuPreferences.Add(menuPreferencesKeyUser); + menuPreferences.Add(menuPreferencesAdvancedUser); + menuPreferences.Add(menuPreferencesUser); + menuPreferences.Add(menuPreferencesTrainee); + menuPreferences.Add(menuPreferencesGuest); + menuPreferences.Add(menuPreferencesUsupplier); + menuPreferences.Add(menuPreferencesSystem); + menuPreferences.Add(menuPreferencesNx); + menuPreferences.Add(menuPreferencesDevelopmentNx); + menuPreferences.Add(menuPreferencesProductivNx); + menuPreferences.Add(menuPreferencesTestNx); + menuPreferences.Add(menuPreferencesTrainingNx); + menuPreferences.Add(menuPreferencesTc); + menuPreferences.Add(menuPreferencesDevelopmentTc); + menuPreferences.Add(menuPreferencesProductivTc); + menuPreferences.Add(menuPreferencesTestTc); + menuPreferences.Add(menuPreferencesTrainingTc); + menuPreferences.Add(menuPreferencesToolStripSeparatorP2); + menuPreferences.Add(menuPreferencesLicenseBundle); + menuPreferences.Add(menuPreferencesNX11110); + menuPreferences.Add(menuPreferencesNX13300N); + menuPreferences.Add(menuPreferencesSC13500); + menuPreferences.Add(menuPreferencesTOTALMACH); + menuPreferences.Add(menuPreferencesToolStripSeparatorP3); + menuPreferences.Add(menuPreferencesConfiguration); + truthTableControl.MenuPreferences = menuPreferences; + + //Menu 'Help' + List menuHelp = new List(); + var menuHelpHelp = new TableRow("Help", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + var menuHelpAbout = new TableRow("About", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + + menuHelp.Add(menuHelpHelp); + menuHelp.Add(menuHelpAbout); + truthTableControl.MenuHelp = menuHelp; + + truthTableControl.CleanUpButton = false; //Gibt an, ob der Bereinigen-Knöpfe aktiv ist + truthTableControl.MoveButtons = false; //Gibt an, ob die Verschieben-Knöpfe aktiv sind + //truthTableControl.AlwaysEncrypted = true; //Alle Werte werden immer Verschlüsselt + truthTableControl.SetDialogWidth(1100); //Der Dialog kann zwischen 1100 und 1600 breit sein + truthTableControl.SetBasicValues(); //Die übergebenen Werte anzeigen + + //truthTableControl.SetTableContent(); + } + } +} diff --git a/HE-Test_Dll/Form1.resx b/HE-Test_Dll/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/HE-Test_Dll/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/HE-Test_Dll/HE-Test_TruthTableControl.csproj b/HE-Test_Dll/HE-Test_TruthTableControl.csproj new file mode 100644 index 0000000..597d110 --- /dev/null +++ b/HE-Test_Dll/HE-Test_TruthTableControl.csproj @@ -0,0 +1,108 @@ + + + + + Debug + AnyCPU + {2B71D20F-009D-4089-8C69-98DCCFADF932} + WinExe + HE_Test_Dll1 + HE-Test_Dll + v4.7.2 + 512 + true + false + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + False + ..\..\..\_DLL\Cryption.git\Cryption\bin\Debug\hecryption.dll + + + ..\TruthTableControl\bin\Debug\hemvalcon.dll + + + False + ..\..\SingleValueControl.git\SingleValueControl\bin\Debug\hesvalcon.dll + + + ..\TruthTableControl\bin\Debug\hettabcon.dll + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1} + SelectionDuoValueControl + + + + \ No newline at end of file diff --git a/HE-Test_Dll/Program.cs b/HE-Test_Dll/Program.cs new file mode 100644 index 0000000..da5f698 --- /dev/null +++ b/HE-Test_Dll/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace HE_Test_Dll1 +{ + internal static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/HE-Test_Dll/Properties/AssemblyInfo.cs b/HE-Test_Dll/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..81038d0 --- /dev/null +++ b/HE-Test_Dll/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("HE_Test_Dll")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HE_Test_Dll")] +[assembly: AssemblyCopyright("Copyright © 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("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")] diff --git a/HE-Test_Dll/Properties/Resources.Designer.cs b/HE-Test_Dll/Properties/Resources.Designer.cs new file mode 100644 index 0000000..7ffff91 --- /dev/null +++ b/HE-Test_Dll/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace HE_Test_Dll1.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HE_Test_Dll1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/HE-Test_Dll/Properties/Resources.resx b/HE-Test_Dll/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/HE-Test_Dll/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/HE-Test_Dll/Properties/Settings.Designer.cs b/HE-Test_Dll/Properties/Settings.Designer.cs new file mode 100644 index 0000000..e2b6fa7 --- /dev/null +++ b/HE-Test_Dll/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace 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; + } + } + } +} diff --git a/HE-Test_Dll/Properties/Settings.settings b/HE-Test_Dll/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/HE-Test_Dll/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe new file mode 100644 index 0000000..4472182 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe differ diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config new file mode 100644 index 0000000..d0f8440 --- /dev/null +++ b/HE-Test_Dll/bin/Debug/HE-Test_Dll.exe.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb b/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb new file mode 100644 index 0000000..402a900 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/HE-Test_Dll.pdb differ diff --git a/HE-Test_Dll/bin/Debug/de/hesvalcon.resources.dll b/HE-Test_Dll/bin/Debug/de/hesvalcon.resources.dll new file mode 100644 index 0000000..cfd456b Binary files /dev/null and b/HE-Test_Dll/bin/Debug/de/hesvalcon.resources.dll differ diff --git a/HE-Test_Dll/bin/Debug/de/hettabcon.resources.dll b/HE-Test_Dll/bin/Debug/de/hettabcon.resources.dll new file mode 100644 index 0000000..c4ebf68 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/de/hettabcon.resources.dll differ diff --git a/HE-Test_Dll/bin/Debug/en/hesvalcon.resources.dll b/HE-Test_Dll/bin/Debug/en/hesvalcon.resources.dll new file mode 100644 index 0000000..cbe5807 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/en/hesvalcon.resources.dll differ diff --git a/HE-Test_Dll/bin/Debug/en/hettabcon.resources.dll b/HE-Test_Dll/bin/Debug/en/hettabcon.resources.dll new file mode 100644 index 0000000..e95edd9 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/en/hettabcon.resources.dll differ diff --git a/HE-Test_Dll/bin/Debug/hecryption.dll b/HE-Test_Dll/bin/Debug/hecryption.dll new file mode 100644 index 0000000..faed5dd Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hecryption.dll differ diff --git a/HE-Test_Dll/bin/Debug/hecryption.pdb b/HE-Test_Dll/bin/Debug/hecryption.pdb new file mode 100644 index 0000000..7f8d97f Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hecryption.pdb differ diff --git a/HE-Test_Dll/bin/Debug/hesvalcon.dll b/HE-Test_Dll/bin/Debug/hesvalcon.dll new file mode 100644 index 0000000..b587976 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hesvalcon.dll differ diff --git a/HE-Test_Dll/bin/Debug/hesvalcon.pdb b/HE-Test_Dll/bin/Debug/hesvalcon.pdb new file mode 100644 index 0000000..16c1c71 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hesvalcon.pdb differ diff --git a/HE-Test_Dll/bin/Debug/hettabcon.dll b/HE-Test_Dll/bin/Debug/hettabcon.dll new file mode 100644 index 0000000..27257f7 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hettabcon.dll differ diff --git a/HE-Test_Dll/bin/Debug/hettabcon.pdb b/HE-Test_Dll/bin/Debug/hettabcon.pdb new file mode 100644 index 0000000..16f2545 Binary files /dev/null and b/HE-Test_Dll/bin/Debug/hettabcon.pdb differ diff --git a/HE-Test_Dll/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/HE-Test_Dll/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/HE-Test_Dll/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..b3b4190 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..62a3f0b Binary files /dev/null and b/HE-Test_Dll/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe b/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe new file mode 100644 index 0000000..4472182 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.exe differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb b/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb new file mode 100644 index 0000000..402a900 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_Dll.pdb differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.AssemblyReference.cache b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.AssemblyReference.cache new file mode 100644 index 0000000..6dea7d2 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.AssemblyReference.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.CopyComplete b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.CoreCompileInputs.cache b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b72651e --- /dev/null +++ b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +085e778a2fbd954aa3833ffa8295171ade35c863 diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.FileListAbsolute.txt b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..224e8f2 --- /dev/null +++ b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.FileListAbsolute.txt @@ -0,0 +1,22 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_TruthTableControl.csproj.AssemblyReference.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_TruthTableControl.csproj.SuggestedBindingRedirects.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE_Test_Dll1.Form1.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE_Test_Dll1.Properties.Resources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_TruthTableControl.csproj.GenerateResource.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_TruthTableControl.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe.config +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hecryption.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hesvalcon.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hettabcon.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hecryption.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hesvalcon.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\de\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\en\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\de\hesvalcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\en\hesvalcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_TruthTableControl.csproj.CopyComplete +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\HE-Test_Dll\bin\Debug\hettabcon.dll diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.GenerateResource.cache b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.GenerateResource.cache new file mode 100644 index 0000000..cfcf5ee Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.GenerateResource.cache differ diff --git a/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.SuggestedBindingRedirects.cache b/HE-Test_Dll/obj/Debug/HE-Test_TruthTableControl.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Form1.resources b/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Form1.resources differ diff --git a/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Properties.Resources.resources b/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/HE_Test_Dll1.Properties.Resources.resources differ diff --git a/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..c904ef9 Binary files /dev/null and b/HE-Test_Dll/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/HE-Test_Dll/obj/Debug/_IsIncrementalBuild b/HE-Test_Dll/obj/Debug/_IsIncrementalBuild new file mode 100644 index 0000000..e5f828c --- /dev/null +++ b/HE-Test_Dll/obj/Debug/_IsIncrementalBuild @@ -0,0 +1 @@ +obj\Debug\\_IsIncrementalBuild diff --git a/TruthTableControl.sln b/TruthTableControl.sln new file mode 100644 index 0000000..01a988a --- /dev/null +++ b/TruthTableControl.sln @@ -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}") = "TruthTableControl", "TruthTableControl\TruthTableControl.csproj", "{65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HE-TruthTableControl", "HE-Test_Dll\HE-Test_TruthTableControl.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 diff --git a/TruthTableControl/LoadXML.cs b/TruthTableControl/LoadXML.cs new file mode 100644 index 0000000..cbfdc9c --- /dev/null +++ b/TruthTableControl/LoadXML.cs @@ -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 groups = new List(); + + //Alle groups-Elemente einlesen und durchgehen + //var personElements = rootElement.Elements(Group); + var groupElements = rootElement.Elements(); + + int i = 0; + string[] temp = new string[5]; + List lkeys = new List(); + List lvalues = new List(); + + 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; + } +} diff --git a/TruthTableControl/LoadXML.cs_old b/TruthTableControl/LoadXML.cs_old new file mode 100644 index 0000000..968ec2b --- /dev/null +++ b/TruthTableControl/LoadXML.cs_old @@ -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 groups = new List(); + + //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; + } +} diff --git a/TruthTableControl/Properties/AppResources.Designer.cs b/TruthTableControl/Properties/AppResources.Designer.cs new file mode 100644 index 0000000..e46785a --- /dev/null +++ b/TruthTableControl/Properties/AppResources.Designer.cs @@ -0,0 +1,281 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Eugen.ESystem.Windows.Forms.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class 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() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Windows.Forms.Properties.AppResources", typeof(AppResources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die xml files (*.xml)|*.xml|All files (*.*)|*.* ähnelt. + /// + internal static string dlgFilter { + get { + return ResourceManager.GetString("dlgFilter", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Open XML file ähnelt. + /// + internal static string dlgOpenTitle { + get { + return ResourceManager.GetString("dlgOpenTitle", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Save XML file ähnelt. + /// + internal static string dlgSaveTitle { + get { + return ResourceManager.GetString("dlgSaveTitle", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Function ähnelt. + /// + internal static string function001 { + get { + return ResourceManager.GetString("function001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Error ähnelt. + /// + internal static string msgBoxCapt001 { + get { + return ResourceManager.GetString("msgBoxCapt001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Warning ähnelt. + /// + internal static string msgBoxCapt002 { + get { + return ResourceManager.GetString("msgBoxCapt002", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Question ähnelt. + /// + internal static string msgBoxCapt003 { + get { + return ResourceManager.GetString("msgBoxCapt003", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Information ähnelt. + /// + internal static string msgBoxCapt004 { + get { + return ResourceManager.GetString("msgBoxCapt004", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die File not found! ähnelt. + /// + internal static string msgBoxTxt001 { + get { + return ResourceManager.GetString("msgBoxTxt001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die No configuration file exists yet for this selection. + ///Values have to be defined and saved first. ähnelt. + /// + internal static string msgBoxTxt002 { + get { + return ResourceManager.GetString("msgBoxTxt002", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Should the values be saved? ähnelt. + /// + internal static string msgBoxTxt003 { + get { + return ResourceManager.GetString("msgBoxTxt003", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Data was found, but the cleanup + ///could not be completed successfully. ähnelt. + /// + internal static string msgBoxTxt004 { + get { + return ResourceManager.GetString("msgBoxTxt004", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Data was successfully cleaned. ähnelt. + /// + internal static string msgBoxTxt005 { + get { + return ResourceManager.GetString("msgBoxTxt005", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die The file was saved successfully. ähnelt. + /// + internal static string msgBoxTxt006 { + get { + return ResourceManager.GetString("msgBoxTxt006", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Visible ähnelt. + /// + internal static string status001 { + get { + return ResourceManager.GetString("status001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Enable ähnelt. + /// + internal static string status002 { + get { + return ResourceManager.GetString("status002", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Administrator ähnelt. + /// + internal static string user001 { + get { + return ResourceManager.GetString("user001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Developer ähnelt. + /// + internal static string user002 { + get { + return ResourceManager.GetString("user002", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Key User ähnelt. + /// + internal static string user003 { + get { + return ResourceManager.GetString("user003", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Advanced User ähnelt. + /// + internal static string user004 { + get { + return ResourceManager.GetString("user004", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die User ähnelt. + /// + internal static string user005 { + get { + return ResourceManager.GetString("user005", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Trainee ähnelt. + /// + internal static string user006 { + get { + return ResourceManager.GetString("user006", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Guest ähnelt. + /// + internal static string user007 { + get { + return ResourceManager.GetString("user007", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Supplier ähnelt. + /// + internal static string user008 { + get { + return ResourceManager.GetString("user008", resourceCulture); + } + } + } +} diff --git a/TruthTableControl/Properties/AppResources.de.resx b/TruthTableControl/Properties/AppResources.de.resx new file mode 100644 index 0000000..a88df46 --- /dev/null +++ b/TruthTableControl/Properties/AppResources.de.resx @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + xml Datei (*.xml)|*.xml|Alle Dateien (*.*)|*.* + + + Öffne XML Datei + + + Speichere XML Datei + + + Funktion + + + Fehler + + + Warnung + + + Frage + + + Information + + + Datei wurde nicht gefunden! + + + Für diese Auswahl existiert noch keine Konfigurationsdatei. +Es müssen erst noch Werte definiert und gespeichert werden. + + + Sollen die Werte gespeichert werden? + + + Daten wurden gefunden, aber die Bereinigung +konnte nicht erfolgreich beendet werden. + + + Daten wurden erfolgreich bereinigt. + + + Die Datei wurde erfolgreich gespeichert. + + + Sichtbar + + + Aktiviert + + + Administrator + + + Entwickler + + + Hauptanwender + + + Erfahr. Anwender + + + Anwender + + + Auszubildender + + + Gast + + + Zulieferer + + \ No newline at end of file diff --git a/TruthTableControl/Properties/AppResources.en.resx b/TruthTableControl/Properties/AppResources.en.resx new file mode 100644 index 0000000..f691902 --- /dev/null +++ b/TruthTableControl/Properties/AppResources.en.resx @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + xml files (*.xml)|*.xml|All files (*.*)|*.* + + + Open XML file + + + Save XML file + + + Function + + + Error + + + Warning + + + Question + + + Information + + + File not found! + + + No configuration file exists yet for this selection. +Values have to be defined and saved first. + + + Should the values be saved? + + + Data was found, but the cleanup +could not be completed successfully. + + + Data was successfully cleaned. + + + The file was saved successfully. + + + Visible + + + Enable + + + Administrator + + + Developer + + + Key User + + + Advanced User + + + User + + + Trainee + + + Guest + + + Supplier + + \ No newline at end of file diff --git a/TruthTableControl/Properties/AppResources.resx b/TruthTableControl/Properties/AppResources.resx new file mode 100644 index 0000000..f691902 --- /dev/null +++ b/TruthTableControl/Properties/AppResources.resx @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + xml files (*.xml)|*.xml|All files (*.*)|*.* + + + Open XML file + + + Save XML file + + + Function + + + Error + + + Warning + + + Question + + + Information + + + File not found! + + + No configuration file exists yet for this selection. +Values have to be defined and saved first. + + + Should the values be saved? + + + Data was found, but the cleanup +could not be completed successfully. + + + Data was successfully cleaned. + + + The file was saved successfully. + + + Visible + + + Enable + + + Administrator + + + Developer + + + Key User + + + Advanced User + + + User + + + Trainee + + + Guest + + + Supplier + + \ No newline at end of file diff --git a/TruthTableControl/Properties/AssemblyInfo.cs b/TruthTableControl/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7731100 --- /dev/null +++ b/TruthTableControl/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("TruthTableControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TruthTableControl")] +[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")] diff --git a/TruthTableControl/Properties/Resources.Designer.cs b/TruthTableControl/Properties/Resources.Designer.cs new file mode 100644 index 0000000..18e0a39 --- /dev/null +++ b/TruthTableControl/Properties/Resources.Designer.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Eugen.ESystem.Windows.Forms.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Windows.Forms.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Pfeil_oben { + get { + object obj = ResourceManager.GetObject("Pfeil_oben", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Pfeil_unten { + get { + object obj = ResourceManager.GetObject("Pfeil_unten", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/TruthTableControl/Properties/Resources.resx b/TruthTableControl/Properties/Resources.resx new file mode 100644 index 0000000..b0fcd2c --- /dev/null +++ b/TruthTableControl/Properties/Resources.resx @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\Pfeil_oben.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Pfeil_unten.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/TruthTableControl/Resources/Pfeil_oben.png b/TruthTableControl/Resources/Pfeil_oben.png new file mode 100644 index 0000000..b256203 Binary files /dev/null and b/TruthTableControl/Resources/Pfeil_oben.png differ diff --git a/TruthTableControl/Resources/Pfeil_unten.png b/TruthTableControl/Resources/Pfeil_unten.png new file mode 100644 index 0000000..10ec1a8 Binary files /dev/null and b/TruthTableControl/Resources/Pfeil_unten.png differ diff --git a/TruthTableControl/Resources/Thumbs.db b/TruthTableControl/Resources/Thumbs.db new file mode 100644 index 0000000..195af4a Binary files /dev/null and b/TruthTableControl/Resources/Thumbs.db differ diff --git a/TruthTableControl/SaveXML.cs b/TruthTableControl/SaveXML.cs new file mode 100644 index 0000000..ab4699d --- /dev/null +++ b/TruthTableControl/SaveXML.cs @@ -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); + } + } +} diff --git a/TruthTableControl/TruthTableControl.Designer.cs b/TruthTableControl/TruthTableControl.Designer.cs new file mode 100644 index 0000000..74652b9 --- /dev/null +++ b/TruthTableControl/TruthTableControl.Designer.cs @@ -0,0 +1,416 @@ +namespace Eugen.ESystem.Windows.Forms +{ + partial class TruthTableControl + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Komponenten-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TruthTableControl)); + this.groupBoxValueControl = new System.Windows.Forms.GroupBox(); + this.labelUser8 = new System.Windows.Forms.Label(); + this.labelUser7 = new System.Windows.Forms.Label(); + this.labelUser6 = new System.Windows.Forms.Label(); + this.labelUser5 = new System.Windows.Forms.Label(); + this.labelUser4 = new System.Windows.Forms.Label(); + this.labelUser3 = new System.Windows.Forms.Label(); + this.labelUser2 = new System.Windows.Forms.Label(); + this.labelUser1 = new System.Windows.Forms.Label(); + this.buttonCleanup = new System.Windows.Forms.Button(); + this.comboBoxGroup = new System.Windows.Forms.ComboBox(); + this.panelEncrypt = 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.labelGroup = new System.Windows.Forms.Label(); + this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); + this.ColumnFunction = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ColumnAdminVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnAdminEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnDeveloperVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnDeveloperEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnKeyUserVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnKeyUserEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnAdvancedUserVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnAdvancedUserEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnUserVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnUserEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnTraineeVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnTraineeEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnGuestVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnGuestEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnSupplierVisible = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ColumnSupplierEnable = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.groupBoxValueControl.SuspendLayout(); + this.panelEncrypt.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewValues)).BeginInit(); + this.SuspendLayout(); + // + // groupBoxValueControl + // + resources.ApplyResources(this.groupBoxValueControl, "groupBoxValueControl"); + this.groupBoxValueControl.Controls.Add(this.labelUser8); + this.groupBoxValueControl.Controls.Add(this.labelUser7); + this.groupBoxValueControl.Controls.Add(this.labelUser6); + this.groupBoxValueControl.Controls.Add(this.labelUser5); + this.groupBoxValueControl.Controls.Add(this.labelUser4); + this.groupBoxValueControl.Controls.Add(this.labelUser3); + this.groupBoxValueControl.Controls.Add(this.labelUser2); + this.groupBoxValueControl.Controls.Add(this.labelUser1); + this.groupBoxValueControl.Controls.Add(this.buttonCleanup); + this.groupBoxValueControl.Controls.Add(this.comboBoxGroup); + this.groupBoxValueControl.Controls.Add(this.panelEncrypt); + 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.labelGroup); + this.groupBoxValueControl.Name = "groupBoxValueControl"; + this.groupBoxValueControl.TabStop = false; + // + // labelUser8 + // + resources.ApplyResources(this.labelUser8, "labelUser8"); + this.labelUser8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser8.Name = "labelUser8"; + // + // labelUser7 + // + resources.ApplyResources(this.labelUser7, "labelUser7"); + this.labelUser7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser7.Name = "labelUser7"; + // + // labelUser6 + // + resources.ApplyResources(this.labelUser6, "labelUser6"); + this.labelUser6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser6.Name = "labelUser6"; + // + // labelUser5 + // + resources.ApplyResources(this.labelUser5, "labelUser5"); + this.labelUser5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser5.Name = "labelUser5"; + // + // labelUser4 + // + resources.ApplyResources(this.labelUser4, "labelUser4"); + this.labelUser4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser4.Name = "labelUser4"; + // + // labelUser3 + // + resources.ApplyResources(this.labelUser3, "labelUser3"); + this.labelUser3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser3.Name = "labelUser3"; + // + // labelUser2 + // + resources.ApplyResources(this.labelUser2, "labelUser2"); + this.labelUser2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser2.Name = "labelUser2"; + // + // labelUser1 + // + resources.ApplyResources(this.labelUser1, "labelUser1"); + this.labelUser1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.labelUser1.Name = "labelUser1"; + // + // buttonCleanup + // + resources.ApplyResources(this.buttonCleanup, "buttonCleanup"); + this.buttonCleanup.Name = "buttonCleanup"; + this.buttonCleanup.UseVisualStyleBackColor = true; + this.buttonCleanup.Click += new System.EventHandler(this.buttonCleanup_Click); + // + // comboBoxGroup + // + resources.ApplyResources(this.comboBoxGroup, "comboBoxGroup"); + this.comboBoxGroup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxGroup.FormattingEnabled = true; + this.comboBoxGroup.Name = "comboBoxGroup"; + this.comboBoxGroup.SelectedIndexChanged += new System.EventHandler(this.comboBoxGroup_SelectedIndexChanged); + this.comboBoxGroup.TextChanged += new System.EventHandler(this.comboBoxGroup_TextChanged); + // + // panelEncrypt + // + resources.ApplyResources(this.panelEncrypt, "panelEncrypt"); + this.panelEncrypt.Controls.Add(this.checkBoxEncryptValues); + this.panelEncrypt.Name = "panelEncrypt"; + // + // checkBoxEncryptValues + // + resources.ApplyResources(this.checkBoxEncryptValues, "checkBoxEncryptValues"); + this.checkBoxEncryptValues.Name = "checkBoxEncryptValues"; + this.checkBoxEncryptValues.UseVisualStyleBackColor = true; + // + // buttonDown + // + resources.ApplyResources(this.buttonDown, "buttonDown"); + this.buttonDown.BackgroundImage = global::Eugen.ESystem.Windows.Forms.Properties.Resources.Pfeil_unten; + this.buttonDown.Name = "buttonDown"; + this.buttonDown.UseVisualStyleBackColor = true; + this.buttonDown.Click += new System.EventHandler(this.buttonDown_Click); + // + // buttonUp + // + resources.ApplyResources(this.buttonUp, "buttonUp"); + this.buttonUp.BackgroundImage = global::Eugen.ESystem.Windows.Forms.Properties.Resources.Pfeil_oben; + this.buttonUp.Name = "buttonUp"; + this.buttonUp.UseVisualStyleBackColor = true; + this.buttonUp.Click += new System.EventHandler(this.buttonUp_Click); + // + // buttonSave + // + resources.ApplyResources(this.buttonSave, "buttonSave"); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); + // + // buttonLoad + // + resources.ApplyResources(this.buttonLoad, "buttonLoad"); + this.buttonLoad.Name = "buttonLoad"; + this.buttonLoad.UseVisualStyleBackColor = true; + this.buttonLoad.Click += new System.EventHandler(this.buttonLoad_Click); + // + // dataGridViewValues + // + this.dataGridViewValues.AllowUserToAddRows = false; + this.dataGridViewValues.AllowUserToDeleteRows = false; + resources.ApplyResources(this.dataGridViewValues, "dataGridViewValues"); + this.dataGridViewValues.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewValues.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.ColumnFunction, + this.ColumnAdminVisible, + this.ColumnAdminEnable, + this.ColumnDeveloperVisible, + this.ColumnDeveloperEnable, + this.ColumnKeyUserVisible, + this.ColumnKeyUserEnable, + this.ColumnAdvancedUserVisible, + this.ColumnAdvancedUserEnable, + this.ColumnUserVisible, + this.ColumnUserEnable, + this.ColumnTraineeVisible, + this.ColumnTraineeEnable, + this.ColumnGuestVisible, + this.ColumnGuestEnable, + this.ColumnSupplierVisible, + this.ColumnSupplierEnable}); + this.dataGridViewValues.Name = "dataGridViewValues"; + this.dataGridViewValues.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.dataGridViewValues_RowsRemoved); + this.dataGridViewValues.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridViewValues_KeyDown); + // + // labelGroup + // + resources.ApplyResources(this.labelGroup, "labelGroup"); + this.labelGroup.Name = "labelGroup"; + // + // openFileDialog + // + this.openFileDialog.FileName = "openFileDialog"; + resources.ApplyResources(this.openFileDialog, "openFileDialog"); + // + // ColumnFunction + // + resources.ApplyResources(this.ColumnFunction, "ColumnFunction"); + this.ColumnFunction.Name = "ColumnFunction"; + this.ColumnFunction.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; + // + // ColumnAdminVisible + // + resources.ApplyResources(this.ColumnAdminVisible, "ColumnAdminVisible"); + this.ColumnAdminVisible.Name = "ColumnAdminVisible"; + this.ColumnAdminVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnAdminVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnAdminEnable + // + resources.ApplyResources(this.ColumnAdminEnable, "ColumnAdminEnable"); + this.ColumnAdminEnable.Name = "ColumnAdminEnable"; + this.ColumnAdminEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnAdminEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnDeveloperVisible + // + resources.ApplyResources(this.ColumnDeveloperVisible, "ColumnDeveloperVisible"); + this.ColumnDeveloperVisible.Name = "ColumnDeveloperVisible"; + this.ColumnDeveloperVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnDeveloperVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnDeveloperEnable + // + resources.ApplyResources(this.ColumnDeveloperEnable, "ColumnDeveloperEnable"); + this.ColumnDeveloperEnable.Name = "ColumnDeveloperEnable"; + this.ColumnDeveloperEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnDeveloperEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnKeyUserVisible + // + resources.ApplyResources(this.ColumnKeyUserVisible, "ColumnKeyUserVisible"); + this.ColumnKeyUserVisible.Name = "ColumnKeyUserVisible"; + this.ColumnKeyUserVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnKeyUserVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnKeyUserEnable + // + resources.ApplyResources(this.ColumnKeyUserEnable, "ColumnKeyUserEnable"); + this.ColumnKeyUserEnable.Name = "ColumnKeyUserEnable"; + this.ColumnKeyUserEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnKeyUserEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnAdvancedUserVisible + // + resources.ApplyResources(this.ColumnAdvancedUserVisible, "ColumnAdvancedUserVisible"); + this.ColumnAdvancedUserVisible.Name = "ColumnAdvancedUserVisible"; + this.ColumnAdvancedUserVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnAdvancedUserVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnAdvancedUserEnable + // + resources.ApplyResources(this.ColumnAdvancedUserEnable, "ColumnAdvancedUserEnable"); + this.ColumnAdvancedUserEnable.Name = "ColumnAdvancedUserEnable"; + this.ColumnAdvancedUserEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnAdvancedUserEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnUserVisible + // + resources.ApplyResources(this.ColumnUserVisible, "ColumnUserVisible"); + this.ColumnUserVisible.Name = "ColumnUserVisible"; + this.ColumnUserVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnUserVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnUserEnable + // + resources.ApplyResources(this.ColumnUserEnable, "ColumnUserEnable"); + this.ColumnUserEnable.Name = "ColumnUserEnable"; + this.ColumnUserEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnUserEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnTraineeVisible + // + resources.ApplyResources(this.ColumnTraineeVisible, "ColumnTraineeVisible"); + this.ColumnTraineeVisible.Name = "ColumnTraineeVisible"; + this.ColumnTraineeVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnTraineeVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnTraineeEnable + // + resources.ApplyResources(this.ColumnTraineeEnable, "ColumnTraineeEnable"); + this.ColumnTraineeEnable.Name = "ColumnTraineeEnable"; + this.ColumnTraineeEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnTraineeEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnGuestVisible + // + resources.ApplyResources(this.ColumnGuestVisible, "ColumnGuestVisible"); + this.ColumnGuestVisible.Name = "ColumnGuestVisible"; + this.ColumnGuestVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnGuestVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnGuestEnable + // + resources.ApplyResources(this.ColumnGuestEnable, "ColumnGuestEnable"); + this.ColumnGuestEnable.Name = "ColumnGuestEnable"; + this.ColumnGuestEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnGuestEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnSupplierVisible + // + resources.ApplyResources(this.ColumnSupplierVisible, "ColumnSupplierVisible"); + this.ColumnSupplierVisible.Name = "ColumnSupplierVisible"; + this.ColumnSupplierVisible.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnSupplierVisible.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // ColumnSupplierEnable + // + resources.ApplyResources(this.ColumnSupplierEnable, "ColumnSupplierEnable"); + this.ColumnSupplierEnable.Name = "ColumnSupplierEnable"; + this.ColumnSupplierEnable.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.ColumnSupplierEnable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // TruthTableControl + // + resources.ApplyResources(this, "$this"); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.groupBoxValueControl); + this.Name = "TruthTableControl"; + this.groupBoxValueControl.ResumeLayout(false); + this.groupBoxValueControl.PerformLayout(); + this.panelEncrypt.ResumeLayout(false); + this.panelEncrypt.PerformLayout(); + ((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.Label labelGroup; + 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.Panel panelEncrypt; + private System.Windows.Forms.ComboBox comboBoxGroup; + private System.Windows.Forms.Button buttonCleanup; + private System.Windows.Forms.Label labelUser8; + private System.Windows.Forms.Label labelUser7; + private System.Windows.Forms.Label labelUser6; + private System.Windows.Forms.Label labelUser5; + private System.Windows.Forms.Label labelUser4; + private System.Windows.Forms.Label labelUser3; + private System.Windows.Forms.Label labelUser2; + private System.Windows.Forms.Label labelUser1; + private System.Windows.Forms.DataGridView dataGridViewValues; + private System.Windows.Forms.DataGridViewTextBoxColumn ColumnFunction; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnAdminVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnAdminEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnDeveloperVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnDeveloperEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnKeyUserVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnKeyUserEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnAdvancedUserVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnAdvancedUserEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnUserVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnUserEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnTraineeVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnTraineeEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnGuestVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnGuestEnable; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnSupplierVisible; + private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnSupplierEnable; + } +} diff --git a/TruthTableControl/TruthTableControl.cs b/TruthTableControl/TruthTableControl.cs new file mode 100644 index 0000000..6ab2b81 --- /dev/null +++ b/TruthTableControl/TruthTableControl.cs @@ -0,0 +1,1136 @@ +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.Documents; + +namespace Eugen.ESystem.Windows.Forms +{ + public partial class TruthTableControl : UserControl + { + #region Version und Copyright + // Keys und Copyright + static string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen + static string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + static string copyright = GenerateCopyright(); + string icon = Application.StartupPath + "\\Info.bmp"; + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + string date = value.ToShortDateString(); + string time = value.ToLongTimeString(); + private static DateTime AssemblyDateTime() + { + var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; + var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision)); + //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original) + return buildDateTime; + } + + private static string CurrentYear() + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + + private static string StartYear() + { + string startYear = ""; + if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) + { + startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", ""); + while (startYear.StartsWith(" ")) + { + startYear = startYear.Remove(0, 1); + } + startYear = startYear.Remove(startYear.IndexOf(" ")); + return startYear; + } + else + { + DateTime dtn = DateTime.Now; + return dtn.Year.ToString(); + } + } + + private static string GenerateCopyright() + { + string startYear = StartYear(); + string currentYear = CurrentYear(); + + if (startYear == currentYear) + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + else + { + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear)); + } + } + #endregion + + #region DLL-Info + /// + /// Contains the name of the dll file. + /// + public static string DllName { private set; get; } + + /// + /// Contains the version of the dll file. + /// + public static string DllVersion { private set; get; } + + /// + /// Contains the copyright notice. + /// + public static string Copyright { private set; get; } + + /// + /// Contains the name-, version- and copyright-information of the dll file. + /// + public static string[] DllInfo { private set; get; } + + private static void SetDllInfo() + { + //Name, Keys und Copyright setzen + DllName = dllName; + DllVersion = dllVersion; + Copyright = copyright; + } + #endregion + + static TruthTableControl() + { + SetDllInfo(); //Name, Keys und Copyright der DLL setzen + } + + /// + /// Creates a control with which the values in an XML file can be edited + /// + public TruthTableControl() + { + InitializeComponent(); + InitialDirectory = @"C:\"; + Topic = "Topic"; + StandardValue = 0; + CleanUpButton = cleanUpButton; + MoveButtons = moveButtons; + SetSurfaceStandardAppearance(); + } + + #region Public values + /// + /// The password used for encryption. An empty value disables the Encrypt values switch + /// + public string Password + { + get { return password; } + set + { + password = value; + checkBoxEncryptValues.Enabled = !String.IsNullOrEmpty(Password); + } + } + + /// + /// Defines or read the initial directory + /// + public string InitialDirectory { set; get; } + + /// + /// XML file name. Must be specified mandatory + /// + public string XMLfileName { set; get; } + + /// + /// XML group file name. Must be specified mandatory and defines the XML file in which the groups are stored + /// + public string XMLgroupFileName { set; get; } + + /// + /// Adjusts the labeling of the values control. An empty value forces the default labeling + /// + public string ValueControlName + { + get { return groupBoxValueControl.Text; } + set + { + groupBoxValueControl.Text = value; + groupBoxValueControl.Refresh(); + } + } + + /// + /// Defines the Topic. An empty value forces the default labeling + /// + public string Topic { set; get; } + + /// + /// Adjusts the labeling of the group designation. An empty value forces the default labeling + /// + public string GroupName + { + get { return labelGroup.Text; } + set { labelGroup.Text = value; } + } + + /// + /// Changes the name of the group attribute used in the XML file, which is displayed and must be included in groups. Required for the Load function + /// + public string Group { set; get; } + + /// + /// List of group attribute names. Required for the Load function + /// + public string[] Groups { set; get; } + + ///// + ///// Adjusts the name of the key attribute used in the XML file. Required by the Load function + ///// + //public string Key { set; get; } + + /// + /// Adjusts the labeling of the table header designation for the key. An empty value forces the default labeling + /// + public string TableKeyName + { + get { return dataGridViewValues.Columns[0].HeaderText; } + set { dataGridViewValues.Columns[0].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 1. An empty value forces the default labeling + /// + public string User1Label + { + get { return labelUser1.Text; } + set { labelUser1.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 2. An empty value forces the default labeling + /// + public string User2Label + { + get { return labelUser2.Text; } + set { labelUser2.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 3. An empty value forces the default labeling + /// + public string User3Label + { + get { return labelUser3.Text; } + set { labelUser3.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 4. An empty value forces the default labeling + /// + public string User4Label + { + get { return labelUser4.Text; } + set { labelUser4.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 5. An empty value forces the default labeling + /// + public string User5Label + { + get { return labelUser5.Text; } + set { labelUser5.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 6. An empty value forces the default labeling + /// + public string User6Label + { + get { return labelUser6.Text; } + set { labelUser6.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 7. An empty value forces the default labeling + /// + public string User7Label + { + get { return labelUser7.Text; } + set { labelUser7.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the user 8. An empty value forces the default labeling + /// + public string User8Label + { + get { return labelUser8.Text; } + set { labelUser8.Text = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue1_1Name + { + get { return dataGridViewValues.Columns[1].HeaderText; } + set { dataGridViewValues.Columns[1].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue1_2Name + { + get { return dataGridViewValues.Columns[2].HeaderText; } + set { dataGridViewValues.Columns[2].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue2_1Name + { + get { return dataGridViewValues.Columns[3].HeaderText; } + set { dataGridViewValues.Columns[3].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue2_2Name + { + get { return dataGridViewValues.Columns[4].HeaderText; } + set { dataGridViewValues.Columns[4].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue3_1Name + { + get { return dataGridViewValues.Columns[5].HeaderText; } + set { dataGridViewValues.Columns[5].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue3_2Name + { + get { return dataGridViewValues.Columns[6].HeaderText; } + set { dataGridViewValues.Columns[6].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue4_1Name + { + get { return dataGridViewValues.Columns[7].HeaderText; } + set { dataGridViewValues.Columns[7].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue4_2Name + { + get { return dataGridViewValues.Columns[8].HeaderText; } + set { dataGridViewValues.Columns[8].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue5_1Name + { + get { return dataGridViewValues.Columns[9].HeaderText; } + set { dataGridViewValues.Columns[9].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue5_2Name + { + get { return dataGridViewValues.Columns[10].HeaderText; } + set { dataGridViewValues.Columns[10].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue6_1Name + { + get { return dataGridViewValues.Columns[11].HeaderText; } + set { dataGridViewValues.Columns[11].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue6_2Name + { + get { return dataGridViewValues.Columns[12].HeaderText; } + set { dataGridViewValues.Columns[12].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue7_1Name + { + get { return dataGridViewValues.Columns[13].HeaderText; } + set { dataGridViewValues.Columns[13].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue7_2Name + { + get { return dataGridViewValues.Columns[14].HeaderText; } + set { dataGridViewValues.Columns[14].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue8_1Name + { + get { return dataGridViewValues.Columns[15].HeaderText; } + set { dataGridViewValues.Columns[15].HeaderText = value; } + } + + /// + /// Adjusts the labeling of the table header designation for the value. An empty value forces the default labeling + /// + public string TableValue8_2Name + { + get { return dataGridViewValues.Columns[16].HeaderText; } + set { dataGridViewValues.Columns[16].HeaderText = value; } + } + + /// + /// Sets the content of the truth table for the 'InterfaceNxPortal' area + /// + public List InterfaceNxPortal { set; get; } + + /// + /// Sets the content of the truth table for the Menu 'Action' area + /// + public List MenuAction { set; get; } + + /// + /// Sets the content of the truth table for the Menu 'Tools' area + /// + public List MenuTools { set; get; } + + /// + /// Sets the content of the truth table for the Menu 'Information' area + /// + public List MenuInformations { set; get; } + + /// + /// Sets the content of the truth table for the Menu 'Preferences' area + /// + public List MenuPreferences { set; get; } + + /// + /// Sets the content of the truth table for the Menu 'Help' area + /// + public List MenuHelp { set; get; } + + /// + /// Controls whether the CleanUp button is enabled. An empty value forces the default value (true) + /// + public bool CleanUpButton + { + get { return cleanUpButton; } + set + { + cleanUpButton = value; + buttonUp.Enabled = !cleanUpButton; + buttonDown.Enabled = !cleanUpButton; + } + } + + /// + /// Controls whether the Move buttons are enabled. An empty value forces the default value (true) + /// + public bool MoveButtons + { + get { return moveButtons; } + set + { + moveButtons = value; + buttonUp.Enabled = !moveButtons; + buttonDown.Enabled = !moveButtons; + } + } + + /// + /// Adjusts the labeling of the encrypt value checkBox. An empty value forces the default labeling + /// + public string CheckBoxEncryptValueText + { + get { return checkBoxEncryptValues.Text; } + set + { + checkBoxEncryptValues.Text = value; + checkBoxEncryptValues.Enabled = !String.IsNullOrEmpty(Password); + } + } + + /// + /// Controls whether values are always encrypted. An empty value forces the default value (false) + /// + public bool AlwaysEncrypted + { + get { return alwaysEncrypted; } + set + { + alwaysEncrypted = value; + checkBoxEncryptValues.Enabled = !alwaysEncrypted; + checkBoxEncryptValues.Checked = alwaysEncrypted; + } + } + #endregion + + #region Private values + private string password; + private bool cleanUpButton = true; + private bool moveButtons = true; + 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 OldNameData { get; set; } + private List OldValueData { get; set; } + private List NewNameData { get; set; } + private List NewValueData { get; set; } + private bool OldEcryptStatus { get; set; } + private bool NewEcryptStatus { get; set; } + #endregion + + private void comboBoxGroup_SelectedIndexChanged(object sender, EventArgs e) + { + Group = comboBoxGroup.SelectedItem.ToString(); + + XmlFileName = String.Concat(XMLfileName.Replace(".xml", ""), "_", Group, ".xml"); + OldXMLfileName = XmlFileName; + //XMLfileName = String.Concat(InitialDirectory, "\\", Group, ".xml"); + + buttonSave.Enabled = (!String.IsNullOrEmpty(comboBoxGroup.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); + + SetTableContent(); //Die Übergebenen werte laden + } + + //OldNameData und OldValueDate schreiben + SetData("old"); + } + + private void comboBoxGroup_TextChanged(object sender, EventArgs e) + { + buttonSave.Enabled = (!String.IsNullOrEmpty(comboBoxGroup.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 der ComboBox Einträge auslesen + string[] xmlItems = LoadGroup(); + + //Alle XML-Dateien auslesen die mit 'NXenvironment' beginnen + string path = Path.GetDirectoryName(XMLfileName); + string[] origXmlFiles = Directory.GetFiles(path); + List xmlFiles = new List(); + string temp = ""; + bool exist = false; + + for (int i = 0; i < origXmlFiles.Length; i++) + { + origXmlFiles[i] = Path.GetFileName(origXmlFiles[i]); + + if (origXmlFiles[i].StartsWith(Path.GetFileNameWithoutExtension(XMLfileName))) + { + xmlFiles.Add(origXmlFiles[i]); + } + } + + //Dateien die in den ComboBox Einträgen nicht vorkommen, löschen + for (int i = 0; i < xmlFiles.Count; i++) + { + for (int j = 0; j < xmlItems.Length; j++) + { + //Vergleichen und 'exist' setzen + temp = xmlFiles[i].Replace(Path.GetFileNameWithoutExtension(XMLfileName) + "_", ""); + if (temp.Remove(temp.LastIndexOf(".")) == xmlItems[j]) + { + exist = true; + } + } + + if (!exist) + { + //Datei löschen + try + { + File.Delete(String.Concat(path, "\\", xmlFiles[i])); + MessageBox.Show(AppRes.msgBoxTxt005, AppRes.msgBoxCapt004, MessageBoxButtons.OK); + } + catch (Exception) + { + MessageBox.Show(AppRes.msgBoxTxt004, AppRes.msgBoxCapt002, MessageBoxButtons.OK); + } + + } + + exist = false; + } + } + + 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 + } + } + + private void SetSurfaceStandardAppearance() + { + SetBasicValues(); + + labelUser1.Text = AppRes.user001; + labelUser2.Text = AppRes.user002; + labelUser3.Text = AppRes.user003; + labelUser4.Text = AppRes.user004; + labelUser5.Text = AppRes.user005; + labelUser6.Text = AppRes.user006; + labelUser7.Text = AppRes.user007; + labelUser8.Text = AppRes.user008; + + dataGridViewValues.Columns[1].HeaderText = AppRes.function001; + dataGridViewValues.Columns[1].HeaderText = AppRes.status001; + dataGridViewValues.Columns[2].HeaderText = AppRes.status002; + dataGridViewValues.Columns[3].HeaderText = AppRes.status001; + dataGridViewValues.Columns[4].HeaderText = AppRes.status002; + dataGridViewValues.Columns[5].HeaderText = AppRes.status001; + dataGridViewValues.Columns[6].HeaderText = AppRes.status002; + dataGridViewValues.Columns[7].HeaderText = AppRes.status001; + dataGridViewValues.Columns[8].HeaderText = AppRes.status002; + dataGridViewValues.Columns[9].HeaderText = AppRes.status001; + dataGridViewValues.Columns[10].HeaderText = AppRes.status002; + dataGridViewValues.Columns[11].HeaderText = AppRes.status001; + dataGridViewValues.Columns[12].HeaderText = AppRes.status002; + dataGridViewValues.Columns[13].HeaderText = AppRes.status001; + dataGridViewValues.Columns[14].HeaderText = AppRes.status002; + dataGridViewValues.Columns[15].HeaderText = AppRes.status001; + dataGridViewValues.Columns[16].HeaderText = AppRes.status002; + } + + public void SetTableContent() + { + switch (Group) + { + case "InterfaceNxPortal": + SetStandardValues(InterfaceNxPortal); + break; + case "MenuAction": + SetStandardValues(MenuAction); + break; + case "MenuTools": + SetStandardValues(MenuTools); + break; + case "MenuInformations": + SetStandardValues(MenuInformations); + break; + case "MenuPreferences": + SetStandardValues(MenuPreferences); + break; + case "MenuHelp": + SetStandardValues(MenuHelp); + break; + default: + break; + } + } + + private void SetStandardValues(List values) + { + foreach (TableRow tableRow in values) + { + AddTableRow(tableRow); + } + } + + public void SetBasicValues() + { + string[] temp = Groups; + + Groups = ReadGroups(); + + if (Groups != null) + { + comboBoxGroup.Items.Clear(); + for (int i = 0; i < Groups.Length; i++) + { + comboBoxGroup.Items.Add(Groups[i]); + } + + comboBoxGroup.SelectedIndex = 0; + } + else + { + Groups = temp; + + if (Groups != null) + { + comboBoxGroup.Items.Clear(); + for (int i = 0; i < Groups.Length; i++) + { + comboBoxGroup.Items.Add(Groups[i]); + } + + comboBoxGroup.SelectedIndex = 0; + } + } + + buttonCleanup.Enabled = CleanUpButton; + buttonCleanup.Visible = CleanUpButton; + buttonUp.Enabled = MoveButtons; + buttonUp.Visible = MoveButtons; + buttonDown.Enabled = MoveButtons; + buttonDown.Visible = MoveButtons; + } + + private void LoadXML() + { + checkBoxEncryptValues.Checked = false; + + var loadXML = new LoadXML(); + loadXML.FileName = String.Concat(XMLfileName.Replace(".xml", ""), "_", Group, ".xml"); + loadXML.Load(); + string[] values = new string[loadXML.Values.Length]; + values = loadXML.Values; + string[] trueTableValues = new string[16]; + + if (!String.IsNullOrEmpty(Group)) + { + loadXML.Group = Group; + } + + dataGridViewValues.Rows.Clear(); + + 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]); + trueTableValues = values[i].Split(','); + dataGridViewValues.Rows.Add(loadXML.Keys[i], Convert.ToBoolean(trueTableValues[0]), Convert.ToBoolean(trueTableValues[1]), Convert.ToBoolean(trueTableValues[2]), Convert.ToBoolean(trueTableValues[3]), Convert.ToBoolean(trueTableValues[4]), Convert.ToBoolean(trueTableValues[5]), Convert.ToBoolean(trueTableValues[6]), Convert.ToBoolean(trueTableValues[7]), Convert.ToBoolean(trueTableValues[8]), Convert.ToBoolean(trueTableValues[9]), Convert.ToBoolean(trueTableValues[10]), Convert.ToBoolean(trueTableValues[11]), Convert.ToBoolean(trueTableValues[12]), Convert.ToBoolean(trueTableValues[13]), Convert.ToBoolean(trueTableValues[14]), Convert.ToBoolean(trueTableValues[15])); + } + + dataGridViewValues.Refresh(); + + comboBoxGroup.Text = loadXML.Group; //Gruppe setzen + + SetData("old"); //Die geladenen Daten setzten + } + + private string[] LoadGroup() + { + string[] values = new string[comboBoxGroup.Items.Count]; + + for (int i = 0; i < comboBoxGroup.Items.Count; i++) + { + values[i] = comboBoxGroup.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) + { + xmlFileName = String.Concat(XMLfileName.Replace(".xml", ""), "_", Group, ".xml"); + XMLgroupFileName = xmlFileName; + + if (!Directory.Exists(Path.GetDirectoryName(xmlFileName))) + { + Directory.CreateDirectory(Path.GetDirectoryName(xmlFileName)); //Wenn das Verzeichnis nicht existiert, dann erzeugen + } + + int dgvLength = dataGridViewValues.RowCount; + 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 + value = Encrypt(dataGridViewValues[1, i].Value.ToString() + "," + dataGridViewValues[2, i].Value.ToString() + "," + dataGridViewValues[3, i].Value.ToString() + "," + dataGridViewValues[4, i].Value.ToString() + "," + dataGridViewValues[5, i].Value.ToString() + "," + dataGridViewValues[6, i].Value.ToString() + "," + dataGridViewValues[7, i].Value.ToString() + "," + dataGridViewValues[8, i].Value.ToString() + "," + dataGridViewValues[9, i].Value.ToString() + "," + dataGridViewValues[10, i].Value.ToString() + "," + dataGridViewValues[11, i].Value.ToString() + "," + dataGridViewValues[12, i].Value.ToString() + "," + dataGridViewValues[13, i].Value.ToString() + "," + dataGridViewValues[14, i].Value.ToString() + "," + dataGridViewValues[15, i].Value.ToString() + "," + dataGridViewValues[16, i].Value.ToString(), Password); //Verschlüsselt + } + else + { + //value = dataGridViewValues[1, i].Value.ToString(); //Unverschlüsselt + value = dataGridViewValues[1, i].Value.ToString() + "," + dataGridViewValues[2, i].Value.ToString() + "," + dataGridViewValues[3, i].Value.ToString() + "," + dataGridViewValues[4, i].Value.ToString() + "," + dataGridViewValues[5, i].Value.ToString() + "," + dataGridViewValues[6, i].Value.ToString() + "," + dataGridViewValues[7, i].Value.ToString() + "," + dataGridViewValues[8, i].Value.ToString() + "," + dataGridViewValues[9, i].Value.ToString() + "," + dataGridViewValues[10, i].Value.ToString() + "," + dataGridViewValues[11, i].Value.ToString() + "," + dataGridViewValues[12, i].Value.ToString() + "," + dataGridViewValues[13, i].Value.ToString() + "," + dataGridViewValues[14, i].Value.ToString() + "," + dataGridViewValues[15, i].Value.ToString() + "," + dataGridViewValues[16, 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 = Topic; //z.B. "NX-Portal" + saveXML.Group = comboBoxGroup.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 oldNameData = new List(); + List oldValueData = new List(); + + 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 newNameData = new List(); + List newValueData = new List(); + + 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; + } + + /// + /// Reads the groups from a XML file + /// + private string[] ReadGroups() + { + if (File.Exists(XMLgroupFileName)) + { + var sivco = new SingleValueControl(); + + sivco.XMLfileName = XMLgroupFileName; + sivco.Password = Password; + + return sivco.GetValues(); + } + else + { + return null; + } + } + + /// + /// Sets a customer width of the user control + /// + /// The width. Min=316, Max=800 + public void SetDialogWidth(int width) + { + if (width >= this.MinimumSize.Width && width <= this.MaximumSize.Width) + { + this.Width = width; + + int dif = width - this.MinimumSize.Width; + + if (dif >= 0) + { + dataGridViewValues.Columns[0].Width = width - 954; + } + } + } + + /// + /// Adds a line to the 'datagridview' + /// + /// The truth table of a position + public void AddTableRow(TableRow tableRow) + { + dataGridViewValues.Rows.Add(tableRow.Column0, tableRow.Column1_1, tableRow.Column1_2, tableRow.Column2_1, tableRow.Column2_2, tableRow.Column3_1, tableRow.Column3_2, tableRow.Column4_1, tableRow.Column4_2, tableRow.Column5_1, tableRow.Column5_2, tableRow.Column6_1, tableRow.Column6_2, tableRow.Column7_1, tableRow.Column7_2, tableRow.Column8_1, tableRow.Column8_2); + } + } + + public class TableRow + { + public string Column0 { get; } + public bool Column1_1 { get; } + public bool Column1_2 { get; } + public bool Column2_1 { get; } + public bool Column2_2 { get; } + public bool Column3_1 { get; } + public bool Column3_2 { get; } + public bool Column4_1 { get; } + public bool Column4_2 { get; } + public bool Column5_1 { get; } + public bool Column5_2 { get; } + public bool Column6_1 { get; } + public bool Column6_2 { get; } + public bool Column7_1 { get; } + public bool Column7_2 { get; } + public bool Column8_1 { get; } + public bool Column8_2 { get; } + + public TableRow(string column0, bool column1_1, bool column1_2, bool column2_1, bool column2_2, bool column3_1, bool column3_2, bool column4_1, bool column4_2, bool column5_1, bool column5_2, bool column6_1, bool column6_2, bool column7_1, bool column7_2, bool column8_1, bool column8_2) => (Column0, Column1_1, Column1_2, Column2_1, Column2_2, Column3_1, Column3_2, Column4_1, Column4_2, Column5_1, Column5_2, Column6_1, Column6_2, Column7_1, Column7_2, Column8_1, Column8_2) = (column0, column1_1, column1_2, column2_1, column2_2, column3_1, column3_2, column4_1, column4_2, column5_1, column5_2, column6_1, column6_2, column7_1, column7_2, column8_1, column8_2); + } +} diff --git a/TruthTableControl/TruthTableControl.csproj b/TruthTableControl/TruthTableControl.csproj new file mode 100644 index 0000000..f0e2c1e --- /dev/null +++ b/TruthTableControl/TruthTableControl.csproj @@ -0,0 +1,101 @@ + + + + + Debug + AnyCPU + {65C7F0F6-B8CA-4C1D-9C68-ED98FC2D31A1} + Library + Eugen.ESystem.Windows.Forms + hettabcon + v4.7.2 + 512 + false + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + ..\..\..\_DLL\Cryption.git\Cryption\bin\Debug\hecryption.dll + + + ..\..\SingleValueControl.git\SingleValueControl\bin\Debug\hesvalcon.dll + + + + + + + + + + + + + + + + + True + True + AppResources.resx + + + True + True + Resources.resx + + + + UserControl + + + TruthTableControl.cs + + + + + + + + + ResXFileCodeGenerator + AppResources.Designer.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + + + TruthTableControl.cs + + + TruthTableControl.cs + + + + + + + + + + \ No newline at end of file diff --git a/TruthTableControl/TruthTableControl.de.resx b/TruthTableControl/TruthTableControl.de.resx new file mode 100644 index 0000000..7ce12aa --- /dev/null +++ b/TruthTableControl/TruthTableControl.de.resx @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bereinigen + + + + 0, 22 + + + 73, 17 + + + Chiffrieren + + + Speichern + + + Laden + + + Alle Werte + + + 42, 13 + + + Gruppe + + + Werte Steuerung + + \ No newline at end of file diff --git a/TruthTableControl/TruthTableControl.resx b/TruthTableControl/TruthTableControl.resx new file mode 100644 index 0000000..9e7f6b5 --- /dev/null +++ b/TruthTableControl/TruthTableControl.resx @@ -0,0 +1,1050 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + + Top, Bottom, Left, Right + + + Top, Right + + + NoControl + + + + 994, 46 + + + 100, 23 + + + + 21 + + + Supplier + + + MiddleCenter + + + labelUser8 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 0 + + + Top, Right + + + NoControl + + + 894, 46 + + + 100, 23 + + + 20 + + + Guest + + + MiddleCenter + + + labelUser7 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 1 + + + Top, Right + + + NoControl + + + 794, 46 + + + 100, 23 + + + 19 + + + Trainee + + + MiddleCenter + + + labelUser6 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 2 + + + Top, Right + + + NoControl + + + 694, 46 + + + 100, 23 + + + 18 + + + User + + + MiddleCenter + + + labelUser5 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 3 + + + Top, Right + + + NoControl + + + 594, 46 + + + 100, 23 + + + 17 + + + Advanced User + + + MiddleCenter + + + labelUser4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 4 + + + Top, Right + + + NoControl + + + 494, 46 + + + 100, 23 + + + 16 + + + Key User + + + MiddleCenter + + + labelUser3 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 5 + + + Top, Right + + + 394, 46 + + + 100, 23 + + + 15 + + + Developer + + + MiddleCenter + + + labelUser2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 6 + + + Top, Right + + + 294, 46 + + + 100, 23 + + + 14 + + + Administrator + + + MiddleCenter + + + labelUser1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 7 + + + Top, Right + + + 1119, 72 + + + 75, 23 + + + 13 + + + Cleanup + + + buttonCleanup + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 8 + + + Top, Left, Right + + + 109, 19 + + + 1004, 21 + + + 12 + + + comboBoxGroup + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 9 + + + Top, Bottom, Right + + + True + + + False + + + NoControl + + + 0, 22 + + + 62, 17 + + + 6 + + + Encrypt + + + checkBoxEncryptValues + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panelEncrypt + + + 0 + + + 1119, 130 + + + 75, 62 + + + 22 + + + panelEncrypt + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 10 + + + Top, Right + + + Zoom + + + NoControl + + + 1119, 198 + + + 75, 23 + + + 10 + + + buttonDown + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 11 + + + Top, Right + + + Zoom + + + NoControl + + + 1119, 101 + + + 75, 23 + + + 9 + + + buttonUp + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 12 + + + Top, Right + + + False + + + NoControl + + + 1119, 43 + + + 75, 23 + + + 8 + + + Save + + + buttonSave + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 13 + + + Top, Right + + + NoControl + + + 1119, 17 + + + 75, 23 + + + 7 + + + Load + + + buttonLoad + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 14 + + + Top, Bottom, Left, Right + + + True + + + Function + + + 46 + + + 246 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + True + + + Visible + + + 50 + + + 50 + + + True + + + Enable + + + 50 + + + 50 + + + 6, 68 + + + Vertical + + + 1107, 153 + + + 4 + + + dataGridViewValues + + + System.Windows.Forms.DataGridView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 15 + + + True + + + NoControl + + + 6, 22 + + + 36, 13 + + + 0 + + + Group + + + labelGroup + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBoxValueControl + + + 16 + + + NoControl + + + 0, 0 + + + 1200, 227 + + + 0 + + + Value control + + + groupBoxValueControl + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + 17, 17 + + + Load XML file + + + 150, 17 + + + True + + + 6, 13 + + + 1600, 460 + + + 1100, 227 + + + 1200, 227 + + + openFileDialog + + + System.Windows.Forms.OpenFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + saveFileDialog + + + System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnFunction + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnAdminVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnAdminEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnDeveloperVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnDeveloperEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnKeyUserVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnKeyUserEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnAdvancedUserVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnAdvancedUserEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnUserVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnUserEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnTraineeVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnTraineeEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnGuestVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnGuestEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnSupplierVisible + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ColumnSupplierEnable + + + System.Windows.Forms.DataGridViewCheckBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + TruthTableControl + + + System.Windows.Forms.UserControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TruthTableControl/bin/Debug/de/hesvalcon.resources.dll b/TruthTableControl/bin/Debug/de/hesvalcon.resources.dll new file mode 100644 index 0000000..cfd456b Binary files /dev/null and b/TruthTableControl/bin/Debug/de/hesvalcon.resources.dll differ diff --git a/TruthTableControl/bin/Debug/de/hettabcon.resources.dll b/TruthTableControl/bin/Debug/de/hettabcon.resources.dll new file mode 100644 index 0000000..c4ebf68 Binary files /dev/null and b/TruthTableControl/bin/Debug/de/hettabcon.resources.dll differ diff --git a/TruthTableControl/bin/Debug/en/hesvalcon.resources.dll b/TruthTableControl/bin/Debug/en/hesvalcon.resources.dll new file mode 100644 index 0000000..cbe5807 Binary files /dev/null and b/TruthTableControl/bin/Debug/en/hesvalcon.resources.dll differ diff --git a/TruthTableControl/bin/Debug/en/hettabcon.resources.dll b/TruthTableControl/bin/Debug/en/hettabcon.resources.dll new file mode 100644 index 0000000..e95edd9 Binary files /dev/null and b/TruthTableControl/bin/Debug/en/hettabcon.resources.dll differ diff --git a/TruthTableControl/bin/Debug/hecryption.dll b/TruthTableControl/bin/Debug/hecryption.dll new file mode 100644 index 0000000..faed5dd Binary files /dev/null and b/TruthTableControl/bin/Debug/hecryption.dll differ diff --git a/TruthTableControl/bin/Debug/hecryption.pdb b/TruthTableControl/bin/Debug/hecryption.pdb new file mode 100644 index 0000000..7f8d97f Binary files /dev/null and b/TruthTableControl/bin/Debug/hecryption.pdb differ diff --git a/TruthTableControl/bin/Debug/hesvalcon.dll b/TruthTableControl/bin/Debug/hesvalcon.dll new file mode 100644 index 0000000..b587976 Binary files /dev/null and b/TruthTableControl/bin/Debug/hesvalcon.dll differ diff --git a/TruthTableControl/bin/Debug/hesvalcon.pdb b/TruthTableControl/bin/Debug/hesvalcon.pdb new file mode 100644 index 0000000..16c1c71 Binary files /dev/null and b/TruthTableControl/bin/Debug/hesvalcon.pdb differ diff --git a/TruthTableControl/bin/Debug/hettabcon.dll b/TruthTableControl/bin/Debug/hettabcon.dll new file mode 100644 index 0000000..27257f7 Binary files /dev/null and b/TruthTableControl/bin/Debug/hettabcon.dll differ diff --git a/TruthTableControl/bin/Debug/hettabcon.pdb b/TruthTableControl/bin/Debug/hettabcon.pdb new file mode 100644 index 0000000..16f2545 Binary files /dev/null and b/TruthTableControl/bin/Debug/hettabcon.pdb differ diff --git a/TruthTableControl/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/TruthTableControl/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/TruthTableControl/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..ca1b6f9 Binary files /dev/null and b/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7fe0b49 Binary files /dev/null and b/TruthTableControl/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.de.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.de.resources new file mode 100644 index 0000000..281224d Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.de.resources differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.en.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.en.resources new file mode 100644 index 0000000..b8be599 Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.en.resources differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.resources new file mode 100644 index 0000000..b8be599 Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.AppResources.resources differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.Resources.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.Resources.resources new file mode 100644 index 0000000..583c69e Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.Properties.Resources.resources differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.de.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.de.resources new file mode 100644 index 0000000..95a1fd7 Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.de.resources differ diff --git a/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.resources b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.resources new file mode 100644 index 0000000..ee2a2b0 Binary files /dev/null and b/TruthTableControl/obj/Debug/Eugen.ESystem.Windows.Forms.TruthTableControl.resources differ diff --git a/TruthTableControl/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll b/TruthTableControl/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll new file mode 100644 index 0000000..87d4511 Binary files /dev/null and b/TruthTableControl/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll differ diff --git a/TruthTableControl/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/TruthTableControl/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..510ff71 Binary files /dev/null and b/TruthTableControl/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/TruthTableControl/obj/Debug/TruthTableControl.csproj.AssemblyReference.cache b/TruthTableControl/obj/Debug/TruthTableControl.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f72f9da Binary files /dev/null and b/TruthTableControl/obj/Debug/TruthTableControl.csproj.AssemblyReference.cache differ diff --git a/TruthTableControl/obj/Debug/TruthTableControl.csproj.CopyComplete b/TruthTableControl/obj/Debug/TruthTableControl.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/TruthTableControl/obj/Debug/TruthTableControl.csproj.CoreCompileInputs.cache b/TruthTableControl/obj/Debug/TruthTableControl.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b633bfb --- /dev/null +++ b/TruthTableControl/obj/Debug/TruthTableControl.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c3bc7eee74044ef1b075fd6b6e9ec5c02f18dbf1 diff --git a/TruthTableControl/obj/Debug/TruthTableControl.csproj.FileListAbsolute.txt b/TruthTableControl/obj/Debug/TruthTableControl.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..dbce466 --- /dev/null +++ b/TruthTableControl/obj/Debug/TruthTableControl.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hettabcon.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hettabcon.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\de\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\en\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hecryption.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hesvalcon.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hecryption.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\hesvalcon.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\de\hesvalcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\bin\Debug\en\hesvalcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\TruthTableControl.csproj.AssemblyReference.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.Resources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.TruthTableControl.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.de.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.Properties.AppResources.en.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\Eugen.ESystem.Windows.Forms.TruthTableControl.de.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\TruthTableControl.csproj.GenerateResource.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\TruthTableControl.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\de\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\en\hettabcon.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\TruthTableControl.csproj.CopyComplete +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\hettabcon.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_USER CONTROL\TruthTableControl.git\TruthTableControl\obj\Debug\hettabcon.pdb diff --git a/TruthTableControl/obj/Debug/TruthTableControl.csproj.GenerateResource.cache b/TruthTableControl/obj/Debug/TruthTableControl.csproj.GenerateResource.cache new file mode 100644 index 0000000..adae95b Binary files /dev/null and b/TruthTableControl/obj/Debug/TruthTableControl.csproj.GenerateResource.cache differ diff --git a/TruthTableControl/obj/Debug/_IsIncrementalBuild b/TruthTableControl/obj/Debug/_IsIncrementalBuild new file mode 100644 index 0000000..e5f828c --- /dev/null +++ b/TruthTableControl/obj/Debug/_IsIncrementalBuild @@ -0,0 +1 @@ +obj\Debug\\_IsIncrementalBuild diff --git a/TruthTableControl/obj/Debug/de/hettabcon.resources.dll b/TruthTableControl/obj/Debug/de/hettabcon.resources.dll new file mode 100644 index 0000000..c4ebf68 Binary files /dev/null and b/TruthTableControl/obj/Debug/de/hettabcon.resources.dll differ diff --git a/TruthTableControl/obj/Debug/en/hettabcon.resources.dll b/TruthTableControl/obj/Debug/en/hettabcon.resources.dll new file mode 100644 index 0000000..e95edd9 Binary files /dev/null and b/TruthTableControl/obj/Debug/en/hettabcon.resources.dll differ diff --git a/TruthTableControl/obj/Debug/hettabcon.dll b/TruthTableControl/obj/Debug/hettabcon.dll new file mode 100644 index 0000000..27257f7 Binary files /dev/null and b/TruthTableControl/obj/Debug/hettabcon.dll differ diff --git a/TruthTableControl/obj/Debug/hettabcon.pdb b/TruthTableControl/obj/Debug/hettabcon.pdb new file mode 100644 index 0000000..16f2545 Binary files /dev/null and b/TruthTableControl/obj/Debug/hettabcon.pdb differ