Пример #1
0
        public XSystemConfigInfo GetConfigInfo()
        {
            XmlDocument dct = new XmlDocument();

            dct.Load(m_ConfigFileName);

            XSystemConfigInfo configInfo = new XSystemConfigInfo();

            XmlNode signNode = dct.SelectSingleNode("SystemConfigs/SignConfig");

            if (signNode != null)
            {
                configInfo.SignWidht      = XHelper.GetInt(m_XmlTool.GetNodeAttributValue(signNode, "SignWidth"));
                configInfo.SignHeight     = XHelper.GetInt(m_XmlTool.GetNodeAttributValue(signNode, "SignHeight"));
                configInfo.RefreshMinutes = XHelper.GetInt(m_XmlTool.GetNodeAttributValue(signNode, "RefreshMinutes"));
            }

            return(configInfo);
        }