public void copySetElement(ClsCard clsCard) { int max, idx; ClsGpsPos clsGpsPosDst; m_dLat = clsCard.m_dLat; m_dLnd = clsCard.m_dLnd; m_sSetNo = clsCard.m_sSetNo; m_sIP = clsCard.m_sIP; m_sSyoNo = clsCard.m_sSyoNo; m_sSyoName = clsCard.m_sSyoName; m_sAddress1 = clsCard.m_sAddress1; m_sAddress2 = clsCard.m_sAddress2; m_sTel1 = clsCard.m_sTel1; m_sTel2 = clsCard.m_sTel2; m_sName = clsCard.m_sName; m_sBikou = clsCard.m_sBikou; m_lstGpsPos.Clear(); max = clsCard.m_lstGpsPos.Count; for (idx = 0; idx < max; idx++) { clsGpsPosDst = new ClsGpsPos(); clsGpsPosDst.copySetElement(clsCard.m_lstGpsPos[idx]); m_lstGpsPos.Add(clsGpsPosDst); } }