DataLoader changes during development
This commit is contained in:
@@ -19,7 +19,7 @@ using System.Collections.Generic;
|
||||
using System.Xml;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Volian.CSLA.Library;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace Config
|
||||
{
|
||||
@@ -177,6 +177,22 @@ namespace Config
|
||||
return null;
|
||||
}
|
||||
XmlDocument d = IniToXml(inipath);
|
||||
// see if default image file extension was set, if not make it TIF
|
||||
XmlNode gr = d.SelectSingleNode("//Graphics");
|
||||
XmlNode ext = null;
|
||||
if (gr != null) ext = gr.SelectSingleNode("@defaultext");
|
||||
if (ext == null)
|
||||
{
|
||||
// if the graphics node doesn't exist, make it.
|
||||
if (gr == null)
|
||||
{
|
||||
gr = d.CreateElement("Graphics");
|
||||
d.DocumentElement.AppendChild(gr);
|
||||
}
|
||||
XmlAttribute xa = d.CreateAttribute("defaultext");
|
||||
xa.Value = "TIF";
|
||||
gr.Attributes.Append(xa);
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user