Logic to keep looking (inheritance) if a blank value is found
Dtermine font style from format xml Fixed a bug - AnnotationTypes in Annotation Search Add defaults for user configuration data
This commit is contained in:
@@ -37,9 +37,11 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
XmlNode xn = null;
|
||||
if (xmlNode != null)
|
||||
{
|
||||
{
|
||||
xn = xmlNode.SelectSingleNode(path);
|
||||
if (xn != null) return xn;
|
||||
// RHM 2008-12-15 - Added logic to keep looking if a blank attribute is found
|
||||
if (xn != null && xn is XmlAttribute && (xn as XmlAttribute).Value != "") return xn;
|
||||
//if (xn != null) return xn;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -63,7 +65,8 @@ namespace VEPROMS.CSLA.Library
|
||||
if (xmlNode == null) return null;
|
||||
XmlNode tmpNode = xmlNode;
|
||||
XmlNode xn = xmlNode.SelectSingleNode(path);
|
||||
while (xn == null)//Walk-up the format tree to find a font node
|
||||
// RHM 2008-12-15 - Added logic to keep looking if a blank attribute is found
|
||||
while (xn == null || (xn is XmlAttribute && (xn as XmlAttribute).Value == ""))//Walk-up the format tree to find a font node
|
||||
{
|
||||
if (xmlNode.NodeType == XmlNodeType.Document)
|
||||
{
|
||||
@@ -282,7 +285,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (ll == null)
|
||||
{
|
||||
XmlNode xn = SelectSingleNode(xPath);
|
||||
ll = new LazyLoad<int?>(xn != null ? (int?)int.Parse(xn.InnerText) : null);
|
||||
ll = new LazyLoad<int?>(xn != null ? (int?)int.Parse("0" + xn.InnerText) : null);
|
||||
}
|
||||
return ll.Value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user