This commit is contained in:
John Jenko 2010-03-25 14:42:43 +00:00
parent bd3fb318d0
commit b433ee9e4e

View File

@ -29,10 +29,10 @@ namespace DataLoader
XmlElement xml = d.DocumentElement;
XmlNode rodef = xml.SelectSingleNode("//zRODefaults");
XmlElement ele = rodef as XmlElement;
string tmp = null;
//string tmp = null;
if (ele != null)
{
roDbpath = ele.GetAttribute("zROPATH");
//roDbpath = ele.GetAttribute("zROPATH");
sp_prefix = ele.GetAttribute("zSetpoint");
img_prefix = ele.GetAttribute("zGraphics");
}
@ -85,11 +85,14 @@ namespace DataLoader
rofst.Dispose();
// Now load any images in... type 8: // Intergrated Graphics RO type
for (int i = 0; i < rofstinfo.ROFSTLookup.myHdr.myDbs.Length; i++)
if (rofstinfo.ROFSTLookup != null)
{
// walk through the rofst 'database' searching for
// all nodes that are integrated graphics, i.e. type 8.
if (rofstinfo.ROFSTLookup.myHdr.myDbs[i].children != null) MigrateRoFstGraphics(roDbpath, rofstinfo.ROFSTLookup.myHdr.myDbs[i].children, rodb);
for (int i = 0; i < rofstinfo.ROFSTLookup.myHdr.myDbs.Length; i++)
{
// walk through the rofst 'database' searching for
// all nodes that are integrated graphics, i.e. type 8.
if (rofstinfo.ROFSTLookup.myHdr.myDbs[i].children != null) MigrateRoFstGraphics(roDbpath, rofstinfo.ROFSTLookup.myHdr.myDbs[i].children, rodb);
}
}
}