Exemple #1
0
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanFedFilter))
            {
                throw new ArgumentException("Invalid assignment source", "FanFedFilter");
            }

            _fanFedFilter.AssignFromSource((aSource as FanFedFilter)._fanFedFilter);
        }
Exemple #2
0
        /// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="FanFedCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanFedCollection))
            {
                throw new ArgumentException("Invalid assignment source", "FanFedCollection");
            }

            _isFiltered = (aSource as FanFedCollection)._isFiltered;
            _fanFedFilter = (aSource as FanFedCollection)._fanFedFilter;
            _fanFedList.Clear();
            foreach (FanFed vFanFedSource in (aSource as FanFedCollection)._fanFedList)
            {
                FanFed vFanFedTarget = new FanFed();
                vFanFedTarget.AssignFromSource(vFanFedSource);
                _fanFedList.Add(vFanFedTarget);
            }
        }
Exemple #3
0
        /// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="FanFedCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanFedCollection))
            {
                throw new ArgumentException("Invalid assignment source", "FanFedCollection");
            }

            _isFiltered   = (aSource as FanFedCollection)._isFiltered;
            _fanFedFilter = (aSource as FanFedCollection)._fanFedFilter;
            _fanFedList.Clear();
            foreach (FanFed vFanFedSource in (aSource as FanFedCollection)._fanFedList)
            {
                FanFed vFanFedTarget = new FanFed();
                vFanFedTarget.AssignFromSource(vFanFedSource);
                _fanFedList.Add(vFanFedTarget);
            }
        }