Ejemplo n.º 1
0
        public bool ChangeVoiceActorName(VoiceActor voiceActor, string newName)
        {
            if (newName == String.Empty)   //Forbid empty string
            {
                return(false);
            }

            if (ListVoiceActors.Any(item => item.Name == newName))   //Forbid two voice actors with same name
            {
                return(false);
            }

            ListVoiceKits.FindAll(item => item.VoiceActor == voiceActor.Name).ForEach(item => item.VoiceActor = newName);

            voiceActor.Name = newName;
            return(true);
        }
Ejemplo n.º 2
0
 public VoiceActor GetVoiceActor(string name)
 {
     return(ListVoiceActors.Find(item => item.Name == name));
 }