public GedcomRepositoryCitation()
		{
			_CallNumbers = new GedcomRecordList<string>();
			_CallNumbers.Changed += ListChanged;
			
			_MediaTypes = new GedcomRecordList<SourceMediaType>();
			_MediaTypes.Changed += ListChanged;
		}
Пример #2
0
		public GedcomFamilyRecord()
		{
			_Events = new GedcomRecordList<GedcomFamilyEvent>();
			_Events.Changed += ListChanged;
			_Children = new GedcomRecordList<string>();
			_Children.Changed += ListChanged;

			_startStatus = MarriageStartStatus.Unknown;
		}
Пример #3
0
        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());
        }
Пример #4
0
		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;
		
		}
Пример #5
0
        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);
        }
Пример #6
0
		public GedcomMultimediaRecord()
		{
			_Files = new GedcomRecordList<GedcomMultimediaFile>();
			_Files.Changed += ListChanged;
		}