Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Factories/Xml/WarFoundryXmlLimitParser.cs @ 268:d8e4eeb761c7
* Delete rogue Console.WriteLine statements from testing
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 12 Jun 2010 20:09:56 +0000 |
parents | a3c1bf57fd3f |
children |
comparison
equal
deleted
inserted
replaced
267:3f14a792fd41 | 268:d8e4eeb761c7 |
---|---|
61 return limit; | 61 return limit; |
62 } | 62 } |
63 | 63 |
64 private ICollection<ILimit> GetSubLimits(XmlElement limitElem) | 64 private ICollection<ILimit> GetSubLimits(XmlElement limitElem) |
65 { | 65 { |
66 System.Console.WriteLine("Getting sub limits"); | |
67 XmlNodeList subLimitNodes = GetSubLimitElements(limitElem); | 66 XmlNodeList subLimitNodes = GetSubLimitElements(limitElem); |
68 ICollection<ILimit> limits = new List<ILimit>(); | 67 ICollection<ILimit> limits = new List<ILimit>(); |
69 | 68 |
70 foreach (XmlNode node in subLimitNodes) | 69 foreach (XmlNode node in subLimitNodes) |
71 { | 70 { |
72 System.Console.WriteLine("Getting limit for "+node.LocalName); | |
73 if (node is XmlElement) | 71 if (node is XmlElement) |
74 { | 72 { |
75 ILimit limit = GetLimitFromElement((XmlElement)node); | 73 ILimit limit = GetLimitFromElement((XmlElement)node); |
76 System.Console.WriteLine("Limit was "+(limit == null ? "null" : limit.GetType().Name)); | 74 |
77 if (limit != null) | 75 if (limit != null) |
78 { | 76 { |
79 limits.Add(limit); | 77 limits.Add(limit); |
80 } | 78 } |
81 } | 79 } |