Exemple #1
0
        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);
            }
        }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public void ItemAdded(object sender, CCBColumnCollectionEventArgs e)
 {
 }