private void btnSelectAll_Click(object sender, EventArgs e) { items.Clear(); foreach (object obj in items.AvailableItems) { items.Add(obj); } }
public object Clone() { QCollection retval = new QCollection(); retval.availableItems = availableItems; foreach (object obj in this) { object newObj = ((ICloneable)obj).Clone(); retval.Add(newObj); } return(retval); }