Exemple #1
0
        public void SetLanguage(int index, string value)
        {
            if (index < 0)
            {
                return;
            }

            while (index >= fLanguages.Count)
            {
                fLanguages.Add(new GEDCOMLanguage(Owner, this, "LANG", ""));
            }
            fLanguages[index].StringValue = value;
        }
        public override GEDCOMTag AddTag(string tagName, string tagValue, TagConstructor tagConstructor)
        {
            GEDCOMTag result;

            if (tagName == "SOUR")
            {
                result = fSourceCitations.Add(new GEDCOMSourceCitation(Owner, this, tagName, tagValue));
            }
            else
            {
                result = base.AddTag(tagName, tagValue, tagConstructor);
            }
            return(result);
        }
Exemple #3
0
        public override GEDCOMTag AddTag(string tagName, string tagValue, TagConstructor tagConstructor)
        {
            GEDCOMTag result;

            if (tagName == "EVEN")
            {
                result = fEvents.Add(new GEDCOMEvent(Owner, this, tagName, tagValue));
            }
            else
            {
                result = base.AddTag(tagName, tagValue, tagConstructor);
            }

            return(result);
        }