public void UndoDelete(ContactCollection originalList) { foreach (Contact contact in this) { originalList.Add(contact); } this.Clear(); }
public TourMember() { this.title = new GeneralType(); this.memberShip = new GeneralType(); this.contacts = new ContactCollection(); this.id = -1; this.DeletedContacts = new ContactCollection(); }
internal void CopyTo(ContactCollection contacts) { contacts.Clear(); foreach (Contact contact in this) { Contact newcontact = new Contact(); contact.CopyTo(newcontact); contacts.Add(newcontact); } }