Änderung

- Key von Directory auf File geändert
- Abfrage ob SubKey leer oder nul ist dazu
This commit is contained in:
Hoeglinger Eugen 2022-08-30 09:06:21 +02:00
parent a379eba0a9
commit cb9e25600d
14 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@ -287,9 +287,16 @@ namespace Eugen.ESystem
/// </summary>
/// <returns>'True' if the sub key exists, otherwise 'false'</returns>
public bool SubKeyExists()
{
if (String.IsNullOrEmpty(SubKey))
{
return false;
}
else
{
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey);
}
}
/// <summary>
/// Checks whether the key exists
@ -299,11 +306,11 @@ namespace Eugen.ESystem
{
if (SubKeyExists())
{
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey + "\\" + Key);
return File.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey + "\\" + Key);
}
else
{
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + Key);
return File.Exists(RoamingPath + "\\" + MainKey + "\\" + Key);
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.