public FamilyEvent(MyPeople myPeople, List <Family> allFamilies, FamilyEventType type, string date, int bridePersonIndex, int groomPersonIndex) { Date = date; EventType = type; BridePersonIndex = bridePersonIndex; GroompersonIndex = groomPersonIndex; Generation = allFamilies[myPeople.allPeople[groomPersonIndex].BirthFamilyIndex].Generation + 1; }
public FamilyEvent(MyPeople myPeople, List<Family> allFamilies, FamilyEventType type, string date, int bridePersonIndex, int groomPersonIndex) { Date = date; EventType = type; BridePersonIndex = bridePersonIndex; GroompersonIndex = groomPersonIndex; Generation = allFamilies[myPeople.allPeople[groomPersonIndex].BirthFamilyIndex].Generation + 1; }