public Person GetPerson(int id, string name)
 {
     if (persons.ContainsKey(id))
         return persons[id];
     else
     {
         Person p = new Person(id, name);
         persons.Add(id, p);
         return p;
     }
 }
 public bool Contains(Person item)
 {
     return persons.ContainsKey(item.Id);
 }
 public ProducerCredit(Person person)
     : base(person, CreditTypes.Producer)
 {
 }
 public DirectorCredit(Person person)
     : base(person, CreditTypes.Director)
 {
 }
 public PersonCredit(Person person, CreditTypes type)
 {
     this.person = person;
     this.type = type;
 }
Exemple #6
0
 public Role(Person person, string rolename, ActorTypes actortype)
     : base(person, CreditTypes.Actor)
 {
     this.rolename = rolename;
     this.actortype = actortype;
 }
 public WriterCredit(Person person)
     : base(person, CreditTypes.Writer)
 {
 }