示例#1
0
        /// <summary>
        /// Convert the string value in ConfigXML to XML object
        /// </summary>
        public void Init_from_ConfigXML()
        {
            Hss_XML_reader xReader = new Hss_XML_reader();
            Hss_XML_obj    xo_lvl0 = xReader.Read(this.ConfigXML.Value);

            if (xo_lvl0 == null)
            {
                return;
            }

            Hss_XML_obj xo_lvl1 = xo_lvl0.Get_obj(XML_name);

            if (xo_lvl1 == null)
            {
                return;
            }

            this.tabConfig_dic.Clear();
            foreach (Hss_XML_obj xo in xo_lvl1.Get_all_obj())
            {
                HssTabConfig htc = new HssTabConfig();
                htc.Init_from_XMLobj(xo);
                this.tabConfig_dic[htc.Name] = htc;
            }
        }
示例#2
0
        public void FromXML(string xml)
        {
            Hss_XML_reader reader = new Hss_XML_reader();
            Hss_XML_obj    xo     = reader.Read(xml);

            if (xo == null)
            {
                return;
            }
            else
            {
                xo = xo.Get_obj("File_info");
            }

            if (xo == null)
            {
                return;
            }

            this.name = xo.Get_attr("name");

            int    tempInt = 0;
            string tempStr = xo.Get_attr("length");

            if (int.TryParse(tempStr, out tempInt))
            {
                this.length = tempInt;
            }
        }
示例#3
0
        public XBRL_event_info(string xml_str)
        {
            if (string.IsNullOrEmpty(xml_str))
            {
                return;
            }

            Hss_XML_reader reader = new Hss_XML_reader();

            this.Init_from_XMLobj(reader.Read(xml_str));
        }
示例#4
0
        public XBRL_event_info(byte[] rawBytes)
        {
            if (rawBytes == null || rawBytes.Length < 1)
            {
                return;
            }

            Hss_XML_reader reader = new Hss_XML_reader();

            this.Init_from_XMLobj(reader.Read(rawBytes));
        }
示例#5
0
        /**************************************************************************************************************************/
        public void Init_from_XMLstr(string xml)
        {
            if (string.IsNullOrEmpty(xml))
            {
                return;
            }

            Hss_XML_reader xReader = new Hss_XML_reader();
            Hss_XML_obj    xo      = xReader.Read(xml);

            this.Init_from_XMLobj(xo);
        }