private void AddRecordToProjectCharacterVerseData(Block block, Character character, Delivery delivery) { var cv = new CharacterVerse( new BCVRef(GetBlockVerseRef(block, ScrVers.English).BBBCCCVVV), character.IsNarrator ? CharacterVerseData.GetStandardCharacterId(CurrentBookId, CharacterVerseData.StandardCharacter.Narrator) : character.CharacterId, delivery.IsNormal ? null : delivery.Text, character.Alias, character.ProjectSpecific || delivery.ProjectSpecific); m_projectCharacterVerseData.Add(cv); m_project.SaveProjectCharacterVerseData(); }
private void AddRecordToProjectCharacterVerseData(Block block, Character character, Delivery delivery) { CharacterDetail detail; if (m_pendingCharacterDetails.TryGetValue(character.CharacterId, out detail)) { m_project.AddProjectCharacterDetail(detail); m_project.SaveProjectCharacterDetailData(); m_pendingCharacterDetails.Remove(detail.CharacterId); } var cv = new CharacterVerse( new BCVRef(GetBlockVerseRef(block, ScrVers.English).BBBCCCVVV), character.IsNarrator ? CharacterVerseData.GetStandardCharacterId(CurrentBookId, CharacterVerseData.StandardCharacter.Narrator) : character.CharacterId, delivery.IsNormal ? null : delivery.Text, character.Alias, character.ProjectSpecific || delivery.ProjectSpecific); m_projectCharacterVerseData.Add(cv); m_project.SaveProjectCharacterVerseData(); }