Änderung
- Key von Directory auf File geändert - Abfrage ob SubKey leer oder nul ist dazu
This commit is contained in:
parent
a379eba0a9
commit
cb9e25600d
Binary file not shown.
Binary file not shown.
@ -288,7 +288,14 @@ namespace Eugen.ESystem
|
||||
/// <returns>'True' if the sub key exists, otherwise 'false'</returns>
|
||||
public bool SubKeyExists()
|
||||
{
|
||||
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey);
|
||||
if (String.IsNullOrEmpty(SubKey))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Directory.Exists(RoamingPath + "\\" + MainKey + "\\" + SubKey);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -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.
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