This commit is contained in:
parent
969485ed40
commit
03a1d870b1
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user