Пример #1
0
 public CMemberKeys(string name    = GlobalDefines.DEFAULT_XML_STRING_VAL,
                    string surname = GlobalDefines.DEFAULT_XML_STRING_VAL,
                    CMemberAndPart MemberAndPart = null)
 {
     Name    = name;
     Surname = surname;
     if (MemberAndPart != null)
     {
         Member        = MemberAndPart.Member;
         Participation = MemberAndPart.Participation;
     }
 }
Пример #2
0
        public override void RefreshFrom(ICanRefreshFrom rhs,
                                         bool SkipNullsForObjects,
                                         bool SkipNullsForNullables)
        {
            base.RefreshFrom(rhs, SkipNullsForObjects, SkipNullsForNullables);

            CMemberAndPart rhsMemberAndPart = rhs as CMemberAndPart;

            if (rhsMemberAndPart == null)
            {
                return;
            }

            if (!SkipNullsForObjects || rhsMemberAndPart.Member != null)
            {
                Member = rhsMemberAndPart.Member;
            }

            if (!SkipNullsForObjects || rhsMemberAndPart.Participation != null)
            {
                Participation = rhsMemberAndPart.Participation;
            }
        }