- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
public object GetUISetting(string path)
{
List<string> splittedPath = path.Split('/').ToList();
string keyName = string.Empty;
foreach (string pathItem in splittedPath)
{
if (pathItem.ToLowerInvariant() == "ui")
{
continue;
}
if (pathItem.First() != '@' && string.IsNullOrEmpty(keyName))
{
keyName = pathItem;
continue;
}
if (bindingItem.ToLowerInvariant() == "@enabled")
{
return this.LoadUIValue(keyName);
}
throw new UISettingsLoaderException("Can't load setting: {0}", binding);
}
throw new UISettingsLoaderException("Can't load setting: {0}", binding);
}
Комментарии (0) RSS
Добавить комментарий