Änderung

- Key existiert Abfrage geändert, dass sie auch ohne SubKey funktioniert
This commit is contained in:
Hoeglinger Eugen 2022-08-30 08:22:37 +02:00
parent 64871eb870
commit a379eba0a9
14 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@ -296,9 +296,16 @@ namespace Eugen.ESystem
/// </summary> /// </summary>
/// <returns>'True' if the key exists, otherwise 'false'</returns> /// <returns>'True' if the key exists, otherwise 'false'</returns>
public bool KeyExists() public bool KeyExists()
{
if (SubKeyExists())
{ {
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey + "\\" + Key); return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey + "\\" + Key);
} }
else
{
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + Key);
}
}
/// <summary> /// <summary>
/// Checks whether the key is 'null' or 'empty' /// Checks whether the key is 'null' or 'empty'

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.