public static CT_Break Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_Break ctObj = new CT_Break(); ctObj.id = XmlHelper.ReadUInt(node.Attributes["id"]); ctObj.min = XmlHelper.ReadUInt(node.Attributes["min"]); ctObj.max = XmlHelper.ReadUInt(node.Attributes["max"]); ctObj.man = XmlHelper.ReadBool(node.Attributes["man"]); ctObj.pt = XmlHelper.ReadBool(node.Attributes["pt"]); return ctObj; }
public CT_Break AddNewBrk() { CT_Break newbreak = new CT_Break(); this.brkField.Add(newbreak); return newbreak; }