Example #1
0
        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);
        }
Example #2
0
 public void LoadUnions()
 {
     Unions = new CUnions();
     Unions.LoadUnions();
     CPerson.Unions = Unions;               // Pass the collection of union  to the CPerson class
 }