Пример #1
0
        public bool CopyFrom(object obj)
        {
            if (object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            var from = obj as AsciiImportDataSource;

            if (null != from)
            {
                using (var token = SuspendGetToken())
                {
                    _asciiFiles = new List <AbsoluteAndRelativeFileName>(CopyHelper.GetEnumerationMembersCloned(from._asciiFiles));
                    ChildSetMember(ref _importOptions, from._importOptions);
                    ChildSetMember(ref _asciiImportOptions, from._asciiImportOptions);
                    _asciiFiles = new List <AbsoluteAndRelativeFileName>(CopyHelper.GetEnumerationMembersCloned(from._asciiFiles));

                    EhSelfChanged(EventArgs.Empty);
                    token.Resume();
                }
                return(true);
            }
            return(false);
        }