This commit is contained in:
@@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (ParentLookup || args.AncestorLookup)
|
||||
{
|
||||
for (FolderInfo folder = _Folder.MyFolderInfo.MyParent; folder != null; folder = folder.MyParent)
|
||||
for (FolderInfo folder = _Folder != null?_Folder.MyFolderInfo.MyParent:_FolderInfo.MyParent; folder != null; folder = folder.MyParent)
|
||||
{
|
||||
string retval = folder.FolderConfig.GetValue(args.Group, args.Item);
|
||||
if (retval != string.Empty) return retval;
|
||||
@@ -77,15 +77,15 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
//private string Xp_LookInAncestorFolderInfo(object sender, XMLPropertiesArgs args)
|
||||
//{
|
||||
// if (args.AncestorLookup || ParentLookup)
|
||||
// {
|
||||
// for (FolderInfo folder = _FolderInfo.MyParent; folder != null; folder = folder.MyParent)
|
||||
// if (args.AncestorLookup || ParentLookup)
|
||||
// {
|
||||
// string retval = folder.FolderConfig.GetValue(args.Group, args.Item);
|
||||
// if (retval != string.Empty) return retval;
|
||||
// for (FolderInfo folder = _FolderInfo.MyParent; folder != null; folder = folder.MyParent)
|
||||
// {
|
||||
// string retval = folder.FolderConfig.GetValue(args.Group, args.Item);
|
||||
// if (retval != string.Empty) return retval;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return string.Empty;
|
||||
// return string.Empty;
|
||||
//}
|
||||
public FolderConfig(FolderInfo folderInfo)
|
||||
{
|
||||
@@ -93,6 +93,7 @@ namespace VEPROMS.CSLA.Library
|
||||
string xml = _FolderInfo.Config;
|
||||
if (xml == string.Empty) xml = "<config/>";
|
||||
_Xp = new XMLProperties(xml);
|
||||
if (_FolderInfo.MyParent != null) _Xp.LookInAncestor += new XMLPropertiesEvent(Xp_LookInAncestorFolder);
|
||||
}
|
||||
public FolderConfig(string xml)
|
||||
{
|
||||
|
Reference in New Issue
Block a user