private void button12_Click(object sender, EventArgs e) { Program.addAmount = 0; Program.tasks = 1; SortableBindingList<Bookmark> allURLs = new SortableBindingList<Bookmark>(); foreach (ObjectCheckBox checkBox in ((Button)sender).Parent.Controls.OfType<ObjectCheckBox>().Where(box => box.Checked == true && box.SyncOrGet == ObjectCheckBox.SyncOrGetEnum.Get)) { allURLs.Union(checkBox.Binding.ReturnBookmarks(), new Program.BookmarkComparer()).ToList().ForEach(a => allURLs.Add(a)); } Display.DisplayBookmarks(allURLs); }