public PrimSocketClient() { _config = new ClientConfig(); PrimDebugUI = new PrimDebugControl(); PrimConfigUI = new PrimConfigControl(this); PrimOutputUI = new PrimOutputControl(); PrimConnStat = PrimConnState.Other; PrimRunStat = PrimRunState.Other; ((PrimConfigControl)PrimConfigUI).SetPrimConnState(PrimConnStat); ((PrimConfigControl)PrimConfigUI).SetPrimRunState(PrimRunStat); }
public PrimSocketClient(XmlNode xmlNode) { //xmlNode turn to _config if (xmlNode != null) { _config = XMLHelper.XMLToObject(xmlNode, typeof(ClientConfig)) as ClientConfig; } else { return; } PrimDebugUI = new PrimDebugControl(); PrimConfigUI = new PrimConfigControl(this); PrimOutputUI = new PrimOutputControl(); PrimConnStat = PrimConnState.Other; PrimRunStat = PrimRunState.Other; ((PrimConfigControl)PrimConfigUI).SetPrimConnState(PrimConnStat); ((PrimConfigControl)PrimConfigUI).SetPrimRunState(PrimRunStat); }