private void GetSocketErrData(string sn,List<SocketCableMonitorInfo> SocketCableInfo, DeviceRegionInfo deviceRegInfo) { if (SocketCableInfo==null) { return; } for (int i = 0; i < SocketCableInfo.Count; i++) { foreach (var item in SocketCableInfo[i].SocketCableInfoDict.Keys) { for (int j = 0; j < SocketCableInfo[i].SocketCableInfoDict[item].Count; j++) { if(!SocketCableInfo[i].SocketCableInfoDict[item][j].IsCableOK) { MonitorErrData temp = new MonitorErrData(); temp.SN = sn; temp.ErrorType = ErrType.Soket; temp.MonitorResult = MonitorInfoResult.Fault; temp.DeviceRegInfo = (DeviceRegionInfo)deviceRegInfo.Clone(); _newAllScreenMonitorErrData.Add(temp); AddSystemRunData(ErrType.Soket, 1); return; } } } } }
public object Clone() { DeviceRegionInfo data = new DeviceRegionInfo(); if (!this.CopyTo(data)) { return null; } return data; }