public void Remove(CCBColumn DO) { int index = 0; for (; index < m_iCount; index++) { if (m_DOA[index].Name == DO.Name) { break; } } if (index == m_iCount) { return; } for (; index < m_iCount - 1; index++) { m_DOA[index] = m_DOA[index + 1]; } m_iCount--; Remove(DO); if (RemoveColumnEvent != null && m_bFireEvents) { CCBColumnCollectionEventArgs args = new CCBColumnCollectionEventArgs(m_iCount, DO); RemoveColumnEvent(this, args); } }
public void Add(CCBColumn DO) { if (Contains(DO)) { throw new Exception("Column collection already contains a column named \"" + DO.Name + "\""); } CheckGrow(); m_DOA[m_iCount] = DO; m_iCount++; if (AddColumnEvent != null && m_bFireEvents) { CCBColumnCollectionEventArgs args = new CCBColumnCollectionEventArgs(m_iCount, DO); AddColumnEvent(this, args); } }
public void Remove(CCBColumn DO) { int index = 0; for(; index < m_iCount; index++) { if(m_DOA[index].Name == DO.Name) break; } if(index == m_iCount) return; for(; index < m_iCount - 1; index++) { m_DOA[index] = m_DOA[index + 1]; } m_iCount--; Remove(DO); if(RemoveColumnEvent != null && m_bFireEvents) { CCBColumnCollectionEventArgs args = new CCBColumnCollectionEventArgs(m_iCount, DO); RemoveColumnEvent(this, args); } }
public void Add(CCBColumn DO) { if(Contains(DO)) throw new Exception("Column collection already contains a column named \"" + DO.Name + "\""); CheckGrow(); m_DOA[m_iCount] = DO; m_iCount++; if(AddColumnEvent != null && m_bFireEvents) { CCBColumnCollectionEventArgs args = new CCBColumnCollectionEventArgs(m_iCount, DO); AddColumnEvent(this, args); } }
public void ItemAdded(object sender, CCBColumnCollectionEventArgs e) { }