public PrimDefaultClass() { _config = new DefaultConfig(); PrimDebugUI = new PrimDebugControl(); PrimConfigUI = new PrimConfigControl(); PrimOutputUI = new PrimOutputControl(); }
public int ImportConfig(XmlNode xmlNode) { var iRet = 0; if (xmlNode != null) { _config = XMLHelper.XMLToObject(xmlNode, typeof(DefaultConfig)) as DefaultConfig; } else { return(-1); } return(iRet); }
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(); }