public CUnions GetUnions() { CUnions us = new CUnions(); foreach (CUnion u in Unions) { if (IsMan()) { if (this.Guid == u.ManGuid) { us.Add(u); } } else { if (this.Guid == u.WomanGuid) { us.Add(u); } } } return(us); }
public void LoadUnions() { Unions = new CUnions(); Unions.LoadUnions(); CPerson.Unions = Unions; // Pass the collection of union to the CPerson class }