예제 #1
0
		/// <summary>
		/// Set the specified value...typically your own new or old value...on the appropriate property.
		/// </summary>
		/// <param name="cache"></param>
		/// <param name="newValue"></param>
		public void SetString(FdoCache cache, ITsString newValue, bool fDoUpdate)
		{
			if (m_ws == 0)
			{
				if (fDoUpdate)
					cache.SetTsStringProperty(m_hvoTarget, m_flid, newValue);
				else
					cache.MainCacheAccessor.SetString(m_hvoTarget, m_flid, newValue);
			}
			else
			{
				if (fDoUpdate)
					cache.SetMultiStringAlt(m_hvoTarget, m_flid, m_ws, newValue);
				else
					cache.MainCacheAccessor.SetMultiStringAlt(m_hvoTarget, m_flid, m_ws, newValue);
			}
		}