public static GEDCOMDatePeriod CreatePeriod(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate dateFrom, GEDCOMDate dateTo) { GEDCOMDatePeriod result = new GEDCOMDatePeriod(owner, parent, "", ""); result.DateFrom.Assign(dateFrom); result.DateTo.Assign(dateTo); return(result); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtSource); SetName("SOUR"); fRepositoryCitations = new GEDCOMList <GEDCOMRepositoryCitation>(this); }
public static GEDCOMDateRange CreateRange(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate dateAfter, GEDCOMDate dateBefore) { GEDCOMDateRange result = new GEDCOMDateRange(owner, parent, "", ""); result.After.Assign(dateAfter); result.Before.Assign(dateBefore); return(result); }
public void Test_GEDCOMObject() { GEDCOMObject obj = new GEDCOMObject(); obj.ExtData = this; Assert.AreEqual(obj.ExtData, this); obj.Dispose(); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); fNotes = new GEDCOMList <GEDCOMNotes>(this); fSourceCitations = new GEDCOMList <GEDCOMSourceCitation>(this); fMultimediaLinks = new GEDCOMList <GEDCOMMultimediaLink>(this); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtMultimedia); SetName("OBJE"); fFileReferences = new GEDCOMList <GEDCOMFileReferenceWithTitle>(this); }
public static GEDCOMDate CreateApproximated(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate date, GEDCOMApproximated approximated) { GEDCOMDate result = new GEDCOMDate(owner, parent, "", ""); result.Assign(date); result.Approximated = approximated; return(result); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtGroup); SetName("_GROUP"); fMembers = new GEDCOMList <GEDCOMPointer>(this); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtFamily); SetName("FAM"); fChildren = new GEDCOMList <GEDCOMPointer>(this); fSpouseSealings = new GEDCOMList <GEDCOMSpouseSealing>(this); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtResearch); SetName("_RESEARCH"); fTasks = new GEDCOMList <GEDCOMPointer>(this); fCommunications = new GEDCOMList <GEDCOMPointer>(this); fGroups = new GEDCOMList <GEDCOMPointer>(this); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); fRecordType = GEDCOMRecordType.rtNone; fNotes = new GEDCOMList <GEDCOMNotes>(this); fSourceCitations = new GEDCOMList <GEDCOMSourceCitation>(this); fMultimediaLinks = new GEDCOMList <GEDCOMMultimediaLink>(this); fUserReferences = new GEDCOMList <GEDCOMUserReference>(this); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetName("ADDR"); fPhoneList = new GEDCOMList <GEDCOMTag>(this); fEmailList = new GEDCOMList <GEDCOMTag>(this); fFaxList = new GEDCOMList <GEDCOMTag>(this); fWWWList = new GEDCOMList <GEDCOMTag>(this); }
public GEDCOMTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) { CreateObj(owner, parent); if (tagName != "" || tagValue != "") { SetName(tagName); SetStringValue(tagValue); } }
public void testCreate() { GEDCOMTree owner = null; GEDCOMObject parent = null; string tagName = ""; string tagValue = ""; GEDCOMTag expResult = null; GEDCOMTag result = GEDCOMPersonalName.Create(owner, parent, tagName, tagValue); Assert.IsNotNull(result); }
public GEDCOMTag CreateTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) { TagConstructor constructor; if (fConstructors.TryGetValue(tagName, out constructor)) { return(constructor(owner, parent, tagName, tagValue)); } return(null); }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetName("NAME"); fPieces = new GEDCOMPersonalNamePieces(owner, this, "", ""); fPieces.SetLevel(Level); fFirstPart = ""; fSurname = ""; fLastPart = ""; }
public void testCreate() { GEDCOMTree owner = null; GEDCOMObject parent = null; string tagName = "BLAH"; string tagValue = ""; GEDCOMTag expResult = null; GEDCOMTag result = GEDCOMDate.Create(owner, parent, tagName, tagValue); Assert.IsNotNull(result); Assert.AreEqual(tagName, result.Name); }
public GEDCOMTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) { CreateObj(owner, parent); if (!string.IsNullOrEmpty(tagName)) { SetName(tagName); } if (!string.IsNullOrEmpty(tagValue)) { SetStringValue(tagValue); } }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetName("DATE"); fApproximated = GEDCOMApproximated.daExact; fCalendar = GEDCOMCalendar.dcGregorian; fYear = UNKNOWN_YEAR; fYearBC = false; fYearModifier = ""; fMonth = ""; fDay = 0; fDateFormat = GEDCOMDateFormat.dfGEDCOMStd; }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetRecordType(GEDCOMRecordType.rtIndividual); SetName("INDI"); fPersonalNames = new GEDCOMList <GEDCOMPersonalName>(this); fIndividualOrdinances = new GEDCOMList <GEDCOMIndividualOrdinance>(this); fChildToFamilyLinks = new GEDCOMList <GEDCOMChildToFamilyLink>(this); fSpouseToFamilyLinks = new GEDCOMList <GEDCOMSpouseToFamilyLink>(this); fSubmittors = new GEDCOMList <GEDCOMPointer>(this); fAssociations = new GEDCOMList <GEDCOMAssociation>(this); fAliasses = new GEDCOMList <GEDCOMAlias>(this); fAncestorsInterest = new GEDCOMList <GEDCOMPointer>(this); fDescendantsInterest = new GEDCOMList <GEDCOMPointer>(this); fGroups = new GEDCOMList <GEDCOMPointer>(this); }
protected virtual void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { fOwner = owner; fParent = parent; fTags = new GEDCOMList <GEDCOMTag>(this); fStringValue = ""; GEDCOMTag parentTag = parent as GEDCOMTag; if (parentTag != null) { fLevel = parentTag.Level + 1; } else { fLevel = 0; } }
public void ResetOwner(GEDCOMTree newOwner) { fOwner = newOwner; if (fDataList == null) { return; } int num = fDataList.Count; for (int i = 0; i < num; i++) { GEDCOMTag item = fDataList[i] as GEDCOMTag; if (item != null) { item.ResetOwner(newOwner); } } }
protected GEDCOMRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue) { }
public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) { return(new GEDCOMAddress(owner, parent, tagName, tagValue)); }
public GEDCOMAddress(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue) { }
protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent) { base.CreateObj(owner, parent); SetName("SOUR"); }
public GEDCOMSourceCitation(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue) { }
public void ResetParent(GEDCOMObject parent) { fParent = parent; }
public GEDCOMFamilyRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue) { }
public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) { return(new GEDCOMIndividualRecord(owner, parent, tagName, tagValue)); }