public CDev(int idNo, string name = "", int chanNum = 16) { this._idNo = idNo; this._name = name; this.ChanMax = chanNum; for (int i = 0; i < chanNum; i++) { SerialNo.Add(""); Result.Add(0); FailInfo.Add(""); HpResult.Add(new CHPPara.CStepVal()); } }
public CStat(int idNo, string name, int flowId, string flowName, int slotMax) { this._idNo = idNo; this._name = name; this._slotMax = slotMax; this.FlowId = flowId; this.FlowName = flowName; for (int i = 0; i < slotMax; i++) { SerialNo.Add(""); Result.Add(0); TestData.Add(""); HpResult.Add(new CHPPara.CStepVal()); } }