(XmlElement Xml, string TagName, string Attribute = "Value")
| 43 | } |
| 44 | |
| 45 | public static string GetXmlResValue(XmlElement Xml, string TagName, string Attribute = "Value") |
| 46 | { |
| 47 | XmlElement tFirstElemet = GetFirstElement(Xml, TagName); |
| 48 | |
| 49 | if (!tFirstElemet.HasAttribute(Attribute)) |
| 50 | throw new Exception("找不到属性'"+Attribute+"'于节点'"+TagName+"'."); |
| 51 | |
| 52 | return tFirstElemet.GetAttribute(Attribute); |
| 53 | } |
| 54 | |
| 55 | public static PointF StringToPointF(string Data) |
| 56 | { |
no outgoing calls
no test coverage detected