public void DeleteProducer(Producer producer) { if (Producers.Contains(producer)) { Producers.Remove(producer); } foreach (var film in producer.Films) { film.Producers.Remove(producer); DataHelper.FilmToProducerConnections[film.ID].Remove(producer.ID); } }