示例#1
0
 public PrimDefaultClass()
 {
     _config      = new DefaultConfig();
     PrimDebugUI  = new PrimDebugControl();
     PrimConfigUI = new PrimConfigControl();
     PrimOutputUI = new PrimOutputControl();
 }
示例#2
0
        public int ImportConfig(XmlNode xmlNode)
        {
            var iRet = 0;

            if (xmlNode != null)
            {
                _config = XMLHelper.XMLToObject(xmlNode, typeof(DefaultConfig)) as DefaultConfig;
            }
            else
            {
                return(-1);
            }
            return(iRet);
        }
示例#3
0
        public PrimDefaultClass(XmlNode xmlNode)
        {
            //xmlNode turn to _config
            if (xmlNode != null)
            {
                _config = XMLHelper.XMLToObject(xmlNode, typeof(DefaultConfig)) as DefaultConfig;
            }
            else
            {
                return;
            }

            PrimDebugUI  = new PrimDebugControl();
            PrimConfigUI = new PrimConfigControl();
            PrimOutputUI = new PrimOutputControl();
        }