示例#1
0
        public void Set_Members()
        {
            Members = new MemberIncidenceCollection();

            foreach (var item in AST_Doc.Members)
            {
                if (MembersNos.Contains(item.MemberNo))
                {
                    Members.Add(item);
                }
            }
        }
示例#2
0
        public void CopyMemberIncidence(MemberIncidenceCollection mcCol)
        {
            int indx = -1;

            for (int i = 0; i < list.Count; i++)
            {
                indx = mcCol.IndexOf(list[i].Member);
                if (indx != -1)
                {
                    list[i].Member       = mcCol[indx];
                    mcCol[indx].Property = list[i];
                }
            }
        }