Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 protected virtual void AddCharacterVerse(CharacterVerse cv)
 {
     m_data.Add(cv);
     ResetCaches();
 }
Ejemplo n.º 8
0
 public int GetHashCode(CharacterVerse cv)
 {
     return(GetHashCode((ICharacterDeliveryInfo)cv));
 }
Ejemplo n.º 9
0
 public bool Equals(CharacterVerse x, CharacterVerse y)
 {
     return(Equals(x, (ICharacterDeliveryInfo)y));
 }
Ejemplo n.º 10
0
 public NarratorOverrideCharacter(string character)
 {
     Character          = character;
     LocalizedCharacter = CharacterVerse.GetLocalizedIndividualCharacterString(character);
 }
Ejemplo n.º 11
0
 protected bool Equals(CharacterVerse other)
 {
     return(Equals(BcvRef, other.BcvRef) &&
            base.Equals(other) &&
            m_origQuoteType == other.m_origQuoteType);
 }