コード例 #1
0
ファイル: CellFanCollection.cs プロジェクト: heinschulie/zfit
        /// <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);
            }
        }
コード例 #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);
            }
        }