function to get parent information without setting flag
This commit is contained in:
parent
c7c678f6ed
commit
5ae7cb88be
@ -74,6 +74,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
throw new XmlPropertiesException("Found more than one node @{0}", item);
|
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]
|
public string this[string group, string item]
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -158,6 +162,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
get { return _Item; }
|
get { return _Item; }
|
||||||
set { _Item = value; }
|
set { _Item = value; }
|
||||||
}
|
}
|
||||||
|
private bool _AncestorLookup;
|
||||||
|
|
||||||
|
public bool AncestorLookup
|
||||||
|
{
|
||||||
|
get { return _AncestorLookup; }
|
||||||
|
set { _AncestorLookup = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Factory Methods
|
#region Factory Methods
|
||||||
private XMLPropertiesArgs() { ;}
|
private XMLPropertiesArgs() { ;}
|
||||||
@ -165,6 +177,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
_Group=group;
|
_Group=group;
|
||||||
_Item=item;
|
_Item=item;
|
||||||
|
_AncestorLookup = false;
|
||||||
|
}
|
||||||
|
public XMLPropertiesArgs(string group, string item, bool ancestorLookup)
|
||||||
|
{
|
||||||
|
_Group = group;
|
||||||
|
_Item = item;
|
||||||
|
_AncestorLookup = ancestorLookup;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user