コード例 #1
0
        /// <summary>
        /// Get the Basic Multilingual Plane from a XmlElement
        /// </summary>
        static public void LoadFromXml(XmlElement Element, string lang)
        {
            if (Element.Name != "Plane" || Element.GetAttribute("nameID") != NameID)
            {
                throw InvalidXmlUnicodeException.DefautMessage;
            }

            XmlSMP  = Element;
            XmlLang = lang;
            Blocks  = CodePlane.LoadFromXml(XmlSMP, XmlLang);
        }
コード例 #2
0
        /// <summary>
        /// Get the Basic Multilingual Plane from a XmlElement
        /// </summary>
        static public void LoadFromXml(XmlElement Element, string lang)
        {
            if (Element.Name == "Plane" && Element.GetAttribute("nameID") == NameID)
            {
                XmlTIP  = Element;
                XmlLang = lang;
                Blocks  = CodePlane.LoadFromXml(XmlTIP, XmlLang);
                return;
            }

            throw InvalidXmlUnicodeException.DefautMessage;
        }