public GedcomRepositoryCitation() { _CallNumbers = new GedcomRecordList<string>(); _CallNumbers.Changed += ListChanged; _MediaTypes = new GedcomRecordList<SourceMediaType>(); _MediaTypes.Changed += ListChanged; }
public GedcomFamilyRecord() { _Events = new GedcomRecordList<GedcomFamilyEvent>(); _Events.Changed += ListChanged; _Children = new GedcomRecordList<string>(); _Children.Changed += ListChanged; _startStatus = MarriageStartStatus.Unknown; }
private void Hash_codes_for_identical_lists_are_the_same() { var list1 = new GedcomRecordList <string> { "item 1" }; var list2 = new GedcomRecordList <string> { "item 1" }; Assert.Equal(list1.GetHashCode(), list2.GetHashCode()); }
public GedcomIndividualRecord() { // avoid resize, indi will nearly always have a name _Names = new GedcomRecordList<GedcomName>(1); _Names.Changed += ListChanged; // do not set capacity on events, uses more memory, at least for Database1.ged _Events = new GedcomRecordList<GedcomIndividualEvent>(); _Events.Changed += ListChanged; _ChildIn = new GedcomRecordList<GedcomFamilyLink>(); _ChildIn.Changed += ListChanged; _SpouseIn = new GedcomRecordList<GedcomFamilyLink>(); _SpouseIn.Changed += ListChanged; }
private GedcomName GenerateCompleteName() { var phoneticVariations = new GedcomRecordList <GedcomVariation> { new GedcomVariation { Value = "ma-rē", VariationType = "unknown" }, new GedcomVariation { Value = "mer-ē", VariationType = "unknown" } }; var romanizedVariations = new GedcomRecordList <GedcomVariation> { new GedcomVariation { Value = "Miriam" }, new GedcomVariation { Value = "Maria" } }; var name = new GedcomName { Type = "aka", Prefix = "Miss", Given = "Mary", SurnamePrefix = "Neu", Surname = "Neumann", Suffix = "Jr", Nick = "Polly", PreferredName = true }; name.PhoneticVariations.AddRange(phoneticVariations); name.RomanizedVariations.AddRange(romanizedVariations); return(name); }
public GedcomMultimediaRecord() { _Files = new GedcomRecordList<GedcomMultimediaFile>(); _Files.Changed += ListChanged; }