This commit is contained in:
parent
df8ed9da64
commit
8b2f1b34f5
@ -57,8 +57,6 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public static bool HasLatestChanges()
|
||||
{
|
||||
if (!HasTopMargin()) return false;
|
||||
if (!HasWCN2_MacroB9()) return false;
|
||||
if (!HasSeqTabFmtTabToken()) return false;
|
||||
return true;
|
||||
}
|
||||
@ -77,36 +75,6 @@ namespace VEPROMS.CSLA.Library
|
||||
return true;
|
||||
}
|
||||
}
|
||||
private static bool HasTopMargin()
|
||||
{
|
||||
using (FormatInfo fi = FormatInfo.Get("WCN2"))
|
||||
{
|
||||
XmlDocument xd = new XmlDocument();
|
||||
xd.LoadXml(fi.Data);
|
||||
XmlNodeList xl = xd.SelectNodes("//DocStyle/Layout/@TopMargin");
|
||||
if (xl.Count == 0)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("DocStyle TopMargin is missing", "Inconsistent Format Files", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
private static bool HasWCN2_MacroB9()
|
||||
{
|
||||
using (FormatInfo fi = FormatInfo.Get("WCN2"))
|
||||
{
|
||||
XmlDocument xd = new XmlDocument();
|
||||
xd.LoadXml(fi.GenMac);
|
||||
XmlNodeList xl = xd.SelectNodes("//*[@id='B9']");
|
||||
if (xl.Count == 0)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("B9 macro is missing in WCN2 GenMac","Inconsistent Format Files", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error );
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public static FormatInfo Get(string name)
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user