public void AddIndunExceptArea(GS_INDUN_EXCEPT_AREA_INFO pkInfo) { foreach (GS_INDUN_EXCEPT_AREA_INFO current in this.m_listIndunExceptMovePos) { if (current.m_nIndex == pkInfo.m_nIndex) { return; } } this.m_listIndunExceptMovePos.Add(pkInfo); }
public void DelIndunExceptArea(GS_INDUN_EXCEPT_AREA_INFO pkInfo) { int num = -1; foreach (GS_INDUN_EXCEPT_AREA_INFO current in this.m_listIndunExceptMovePos) { num++; if (current.m_nIndex == pkInfo.m_nIndex) { break; } } this.m_listIndunExceptMovePos.RemoveAt(num); }