/// <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); } }