/**************************************************************************************************/ private Person AddStockByType(string new_rel_type, string bloodline, int relId, int motherId, int fatherId) { RelationshipEnum re = Relationship.Parse(new_rel_type); GenderEnum ge = Relationship.getGenderFromRelationshipType(re); Person rel = new Person(); rel.owningFHx = this; rel.relativeID = relId; rel.bloodline = bloodline; rel.relationship = new_rel_type; rel.gender = Gender.toString(ge); rel.motherID = motherId; rel.fatherID = fatherId; rel.HraState = RiskApps3.Model.HraObject.States.Ready; rel.BackgroundPersistWork(new HraModelChangedEventArgs(null)); return rel; }