Funk. zum deaktivieren der Verschlüsselung
- Funktion 'checkBoxEncryptValues' kann deaktiviert werden - 'checkBoxEncryptValues' wird ausgeblendet - Werte werden dann nicht mehr verschlüsselt
This commit is contained in:
parent
31894d793a
commit
c5431691cc
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -92,7 +92,7 @@
|
|||||||
this.labelGroup2.Name = "labelGroup2";
|
this.labelGroup2.Name = "labelGroup2";
|
||||||
this.labelGroup2.Size = new System.Drawing.Size(97, 13);
|
this.labelGroup2.Size = new System.Drawing.Size(97, 13);
|
||||||
this.labelGroup2.TabIndex = 14;
|
this.labelGroup2.TabIndex = 14;
|
||||||
this.labelGroup2.Text = "Group1 2";
|
this.labelGroup2.Text = "Group2";
|
||||||
//
|
//
|
||||||
// buttonCleanup
|
// buttonCleanup
|
||||||
//
|
//
|
||||||
@ -222,7 +222,7 @@
|
|||||||
this.labelGroup1.Name = "labelGroup1";
|
this.labelGroup1.Name = "labelGroup1";
|
||||||
this.labelGroup1.Size = new System.Drawing.Size(97, 13);
|
this.labelGroup1.Size = new System.Drawing.Size(97, 13);
|
||||||
this.labelGroup1.TabIndex = 0;
|
this.labelGroup1.TabIndex = 0;
|
||||||
this.labelGroup1.Text = "Group1 1";
|
this.labelGroup1.Text = "Group1";
|
||||||
//
|
//
|
||||||
// openFileDialog
|
// openFileDialog
|
||||||
//
|
//
|
||||||
|
|||||||
@ -260,8 +260,18 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
alwaysEncrypted = value;
|
alwaysEncrypted = value;
|
||||||
checkBoxEncryptValues.Enabled = !alwaysEncrypted;
|
}
|
||||||
checkBoxEncryptValues.Checked = alwaysEncrypted;
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controls whether values are never encrypted. An empty value forces the default value (false). True always dectivates 'AlwaysEncrypted'
|
||||||
|
/// </summary>
|
||||||
|
public bool NeverEncrypted
|
||||||
|
{
|
||||||
|
get { return neverEncrypted; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
neverEncrypted = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@ -269,6 +279,7 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
#region Private values
|
#region Private values
|
||||||
private string password;
|
private string password;
|
||||||
private bool alwaysEncrypted = false;
|
private bool alwaysEncrypted = false;
|
||||||
|
private bool neverEncrypted = false;
|
||||||
private bool standardValueSet = false;
|
private bool standardValueSet = false;
|
||||||
private int selectedRow = 0;
|
private int selectedRow = 0;
|
||||||
private int rowIndexColored = 0;
|
private int rowIndexColored = 0;
|
||||||
@ -607,6 +618,7 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
|
|
||||||
public void SetBasicValues()
|
public void SetBasicValues()
|
||||||
{
|
{
|
||||||
|
//'Groups1' mit Werten befüllen
|
||||||
Groups1 = ReadGroups(XMLgroup1FileName);
|
Groups1 = ReadGroups(XMLgroup1FileName);
|
||||||
|
|
||||||
if (Groups1 != null)
|
if (Groups1 != null)
|
||||||
@ -620,6 +632,7 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
comboBoxGroup1.SelectedIndex = 0;
|
comboBoxGroup1.SelectedIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//'Groups2' mit Werten befüllen
|
||||||
Groups2 = ReadGroups(XMLgroup2FileName);
|
Groups2 = ReadGroups(XMLgroup2FileName);
|
||||||
|
|
||||||
if (Groups2 != null)
|
if (Groups2 != null)
|
||||||
@ -632,6 +645,17 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
|
|
||||||
comboBoxGroup2.SelectedIndex = 0;
|
comboBoxGroup2.SelectedIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 'checkBoxEncryptValues' entsprechend der übergebenen Parameter setzen
|
||||||
|
if (neverEncrypted)
|
||||||
|
{
|
||||||
|
checkBoxEncryptValues.Visible = !neverEncrypted;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
checkBoxEncryptValues.Checked = alwaysEncrypted;
|
||||||
|
checkBoxEncryptValues.Enabled = !alwaysEncrypted;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadXML()
|
private void LoadXML()
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -137,6 +137,7 @@ namespace HE_Test_Dll1
|
|||||||
duoMultiValueControl.TableKeyName = "MyVarName";
|
duoMultiValueControl.TableKeyName = "MyVarName";
|
||||||
duoMultiValueControl.TableValueName = "MyValue";
|
duoMultiValueControl.TableValueName = "MyValue";
|
||||||
//duoMultiValueControl.AlwaysEncrypted = true; //Alle Werte werden immer Verschlüsselt
|
//duoMultiValueControl.AlwaysEncrypted = true; //Alle Werte werden immer Verschlüsselt
|
||||||
|
//duoMultiValueControl.NeverEncrypted = true; //Alle Werte werden nie Verschlüsselt
|
||||||
duoMultiValueControl.SetDialogWidth(600); //Der Dialog kann zwischen 316 und 800 breit sein
|
duoMultiValueControl.SetDialogWidth(600); //Der Dialog kann zwischen 316 und 800 breit sein
|
||||||
duoMultiValueControl.SetDialogHeight(300); //Der Dialog kann zwischen 227 und 460 hoch sein
|
duoMultiValueControl.SetDialogHeight(300); //Der Dialog kann zwischen 227 und 460 hoch sein
|
||||||
duoMultiValueControl.SetBasicValues(); //Die übergebenen Werte anzeigen
|
duoMultiValueControl.SetBasicValues(); //Die übergebenen Werte anzeigen
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user