Пример #1
0
		public override void Load(int hvo, int tag, int ws, IVwCacheDa cda)
		{
			bool fIsTranslation = false;
			StText stText = new StText(Cache, hvo);
			if (Scripture.IsResponsibleFor(stText))
			{
				// we'll consider everything but footnotes a translation.
				fIsTranslation = stText.OwningFlid != (int)ScrBook.ScrBookTags.kflidFootnotes;
			}
			else if (stText.OwningFlid == (int)Text.TextTags.kflidContents)
			{
				Text text = stText.Owner as Text;
				fIsTranslation = text.IsTranslated;
			}
			else
			{
				// throw?
			}
			cda.CacheBooleanProp(hvo, tag, fIsTranslation);
		}
Пример #2
0
		/// <summary>
		///
		/// </summary>
		/// <param name="hvo"></param>
		/// <param name="tag"></param>
		/// <param name="ws"></param>
		/// <param name="cda"></param>
		public override void Load(int hvo, int tag, int ws, IVwCacheDa cda)
		{
			ICmObject fdoObj = CmObject.CreateFromDBObject(m_cache, hvo);
			bool val = (bool) m_propertyInfo.GetValue(fdoObj, null);
			cda.CacheBooleanProp(hvo, tag, val);
		}