diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs index a10867ac..76dd2631 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs @@ -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