Пример #1
0
 protected virtual void AddCharacterVerse(CharacterVerse cv)
 {
     m_data.Add(cv);
     m_lookup = m_data.ToLookup(c => c.BcvRef.BBCCCVVV);
     m_uniqueCharacterAndDeliveries = null;
     m_uniqueDeliveries             = null;
 }
Пример #2
0
 protected bool Equals(CharacterVerse other)
 {
     return(Equals(m_bcvRef, other.m_bcvRef) &&
            string.Equals(Character, other.Character) &&
            string.Equals(Delivery, other.Delivery) &&
            string.Equals(Alias, other.Alias) &&
            QuoteType == other.QuoteType);
 }
Пример #3
0
        protected virtual bool AddCharacterVerse(CharacterVerse cv)
        {
            if (m_data.Add(cv))
            {
                ResetCaches();
                return(true);
            }

            return(false);
        }
        public virtual void Add(CharacterVerse cv)
        {
            AddCharacterVerse(cv);

            Analytics.Track("AddCharacter", new Dictionary <string, string>
            {
                { "verseReference", cv.BcvRef.AsString },
                { "characterId", cv.Character },
                { "delivery", cv.Delivery }
            });
        }
 protected override bool AddCharacterVerse(CharacterVerse cv)
 {
     throw new ApplicationException("The control file cannot be modified programmatically.");
 }
 private string GetTabDelimitedFields(CharacterVerse cv)
 {
     return(cv.BookCode + "\t" + cv.Chapter + "\t" + cv.Verse + "\t" + cv.Character + "\t" + cv.Delivery + "\t" + cv.Alias);
 }
Пример #7
0
 protected virtual void AddCharacterVerse(CharacterVerse cv)
 {
     m_data.Add(cv);
     ResetCaches();
 }
Пример #8
0
 public int GetHashCode(CharacterVerse cv)
 {
     return(GetHashCode((ICharacterDeliveryInfo)cv));
 }
Пример #9
0
 public bool Equals(CharacterVerse x, CharacterVerse y)
 {
     return(Equals(x, (ICharacterDeliveryInfo)y));
 }
Пример #10
0
 public NarratorOverrideCharacter(string character)
 {
     Character          = character;
     LocalizedCharacter = CharacterVerse.GetLocalizedIndividualCharacterString(character);
 }
Пример #11
0
 protected bool Equals(CharacterVerse other)
 {
     return(Equals(BcvRef, other.BcvRef) &&
            base.Equals(other) &&
            m_origQuoteType == other.m_origQuoteType);
 }