public void Delete(int idShipPart) { ShipPart shipPart = getItem(idShipPart); list.Remove(shipPart); shipPart.Delete(); }