CopyFrom() 공개 메소드

public CopyFrom ( RelationItem source ) : void
source RelationItem
리턴 void
예제 #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="source"></param>
        public void CopyFrom(Relations source)
        {
            ClearAll();

            List<RelationItem> arr = source._items;
            foreach (RelationItem ri in arr)
            {
                RelationItem item = new RelationItem(_owner);
                item.CopyFrom(ri);
                _items.Add(item);
            }
        }
예제 #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="source"></param>
        public void CopyFrom(Relations source)
        {
            ClearAll();

            List<RelationItem> arr = source._items;
            foreach (RelationItem ri in arr)
            {
                RelationItem item = new RelationItem(_owner);
                item.CopyFrom(ri);
                _items.Add(item);
            }
        }