Example #1
0
 private void MergeVernacularString(MultiStringAccessor fwString, string wsString)
 {
     if (wsString.Length > 0)
     {
         fwString.VernacularDefaultWritingSystem.Text = wsString;
     }
 }
Example #2
0
 //hack: our parser would need send us more than a simple SimpleMultiText to encode these
 private void MergeIn(MultiStringAccessor multiString, SimpleMultiText forms)
 {
     if (forms != null && forms.Keys != null)
     {
         foreach (string key in forms.Keys)
         {
             int wsHvo = GetWsFromLiftLang(key);
             multiString.SetAlternative(forms[key], wsHvo);
         }
     }
 }
Example #3
0
        private bool TryMultiStringAlt(ISilDataAccess sda, int hvo, int flid, out int wsActual)
        {
            MultiStringAccessor accessor = new MultiStringAccessor(m_cache, hvo, flid, "");

            return(accessor.TryWs(m_ws, out wsActual));
        }