public virtual ColumnPropertiesCollection GetCollumns(ColumnPropertiesCollection oldCollection)
        {
            ColumnPropertiesCollection newCollection = new ColumnPropertiesCollection();

            foreach (CheckedListBoxItem item in listBox.Items)
            {
                newCollection.Add(item.Value.ToString(), item.CheckState == CheckState.Checked, oldCollection[listBox.Items.IndexOf(item)].VisibleIndex, item.Enabled);
            }
            return(newCollection);
        }
        public ColumnPropertiesCollection GetCopy()
        {
            ColumnPropertiesCollection collection = new ColumnPropertiesCollection();

            foreach (ColumnProperties column in this)
            {
                collection.Add(column);
            }
            return(collection);
        }