private void MergeVernacularString(MultiStringAccessor fwString, string wsString) { if (wsString.Length > 0) { fwString.VernacularDefaultWritingSystem.Text = wsString; } }
//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); } } }
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)); }