Gruppe wahlweise auslesen oder übergeben

- Die Gruppe kann, unabhängig von der XML Datei, auch übergeben werden
This commit is contained in:
Eugen Höglinger 2022-10-27 09:49:36 +02:00
parent 3781d720ec
commit b0dcdf852e
29 changed files with 10 additions and 2 deletions

Binary file not shown.

View File

@ -382,6 +382,11 @@ namespace Eugen.ESystem.Windows.Forms
string[] values = new string[loadXML.Values.Length];
values = loadXML.Values;
if (!String.IsNullOrEmpty(Group))
{
loadXML.Group = Group;
}
for (int i = 0; i < values.Length; i++)
{
if (values[i].StartsWith("$$$$"))

View File

@ -38,7 +38,10 @@ namespace Eugen.ESystem.Windows.Forms
{
temp = groupElement.ToString().Split(' ');
if (String.IsNullOrEmpty(Group))
{
Group = ExtractGroup(temp);
}
lkeys.Add(ExtractKey(temp));
lvalues.Add(ExtractValue(temp));

View File

@ -127,7 +127,7 @@ namespace HE_Test_Dll1
duoValueControl.ValueControlName = "My XML Control";
duoValueControl.Topic = "NX-Portal";
duoValueControl.GroupName = "MyGroup";
//duoValueControl.Group = "NX_1953"; //Belegt die Gruppe vor. Darf kein Leerzeichen enthalten
//duoValueControl.Group = "NX_2212"; //Belegt die Gruppe vor. Darf kein Leerzeichen enthalten
duoValueControl.TableKeyName = "MyVarName";
duoValueControl.TableValueName = "MyValue";
duoValueControl.CheckBoxEncryptValueText = "Encrypt\r\nvalues";

Binary file not shown.

Binary file not shown.