This commit is contained in:
Kathy Ruffing 2011-08-24 11:47:10 +00:00
parent 969485ed40
commit 03a1d870b1

View File

@ -59,8 +59,24 @@ namespace VEPROMS.CSLA.Library
{
if (!HasTopMargin()) return false;
if (!HasWCN2_MacroB9()) return false;
if (!HasSeqTabFmtTabToken()) return false;
return true;
}
private static bool HasSeqTabFmtTabToken()
{
using (FormatInfo fi = FormatInfo.Get("WCN2"))
{
XmlDocument xd = new XmlDocument();
xd.LoadXml(fi.Data);
XmlNodeList xl = xd.SelectNodes("//FormatData/SectData/StepSectionData/SequentialTabFormat/SeqTabFmt/@TabToken");//"//DocStyle/Layout/@TopMargin");
if (xl.Count == 0)
{
System.Windows.Forms.MessageBox.Show("FormatData SeqTab/TabToken is missing", "Inconsistent Format Files", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
return false;
}
return true;
}
}
private static bool HasTopMargin()
{
using (FormatInfo fi = FormatInfo.Get("WCN2"))