Example #1
0
 public void AddLanguageString(string key, XmlString value, string writingSystemId, bool isCollectionValue)
 {
     if (!TextVariables.ContainsKey(key))
     {
         var text = new MultiTextBase();
         TextVariables.Add(key, new DataSetElementValue(text, isCollectionValue));
     }
     TextVariables[key].TextAlternatives.SetAlternative(writingSystemId, value?.Xml);
 }
Example #2
0
        public void UpdateGenericLanguageString(string key, XmlString value, bool isCollectionValue)
        {
            var text = new MultiTextBase();

            text.SetAlternative("*", value?.Xml);
            if (TextVariables.ContainsKey(key))
            {
                TextVariables.Remove(key);
            }
            TextVariables.Add(key, new DataSetElementValue(text, isCollectionValue));
        }