/// <summary> /// Adds the elements of another LogColumnCollection to the end of this LogColumnCollection. /// </summary> /// <param name="items"> /// The LogColumnCollection whose elements are to be added to the end of this LogColumnCollection. /// </param> public virtual void AddRange(LogColumnCollection items) { foreach (LogColumn item in items) { this.List.Add(item); } }
private void ChooseColumnsDialog_Load(object sender, EventArgs e) { LogColumnCollection lcc = new LogColumnCollection(); foreach (LogColumn lc in Session.Columns) { lcc.Add(lc.Clone()); } _lcc = lcc; dataGridView1.DataSource = lcc; }
/// <summary> /// Initializes a new instance of the LogColumnCollection class, containing elements /// copied from another instance of LogColumnCollection /// </summary> /// <param name="items"> /// The LogColumnCollection whose elements are to be added to the new LogColumnCollection. /// </param> public LogColumnCollection(LogColumnCollection items) { this.AddRange(items); }
public Enumerator(LogColumnCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }