예제 #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);
 }