Exemplo n.º 1
0
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is CellFanFilter))
            {
                throw new ArgumentException("Invalid assignment source", "CellFanFilter");
            }

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

            _isFiltered = (aSource as CellFanCollection)._isFiltered;
            _cellFanFilter = (aSource as CellFanCollection)._cellFanFilter;
            _cellFanList.Clear();
            foreach (CellFan vCellFanSource in (aSource as CellFanCollection)._cellFanList)
            {
                CellFan vCellFanTarget = new CellFan();
                vCellFanTarget.AssignFromSource(vCellFanSource);
                _cellFanList.Add(vCellFanTarget);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="CellFanCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is CellFanCollection))
            {
                throw new ArgumentException("Invalid assignment source", "CellFanCollection");
            }

            _isFiltered    = (aSource as CellFanCollection)._isFiltered;
            _cellFanFilter = (aSource as CellFanCollection)._cellFanFilter;
            _cellFanList.Clear();
            foreach (CellFan vCellFanSource in (aSource as CellFanCollection)._cellFanList)
            {
                CellFan vCellFanTarget = new CellFan();
                vCellFanTarget.AssignFromSource(vCellFanSource);
                _cellFanList.Add(vCellFanTarget);
            }
        }