function to get parent information without setting flag

This commit is contained in:
Jsj 2008-03-26 18:27:26 +00:00
parent c7c678f6ed
commit 5ae7cb88be

View File

@ -74,6 +74,10 @@ namespace VEPROMS.CSLA.Library
throw new XmlPropertiesException("Found more than one node @{0}", item);
}
}
public string ParentValue(string group, string item)
{
return OnLookInAncestor(this, new XMLPropertiesArgs(group, item, true));
}
public string this[string group, string item]
{
get
@ -158,6 +162,14 @@ namespace VEPROMS.CSLA.Library
get { return _Item; }
set { _Item = value; }
}
private bool _AncestorLookup;
public bool AncestorLookup
{
get { return _AncestorLookup; }
set { _AncestorLookup = value; }
}
#endregion
#region Factory Methods
private XMLPropertiesArgs() { ;}
@ -165,6 +177,13 @@ namespace VEPROMS.CSLA.Library
{
_Group=group;
_Item=item;
_AncestorLookup = false;
}
public XMLPropertiesArgs(string group, string item, bool ancestorLookup)
{
_Group = group;
_Item = item;
_AncestorLookup = ancestorLookup;
}
#endregion
}