コード例 #1
0
        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);
            }
        }