Example #1
0
        /// <summary>
        ///     Add to current directory child file system object (other directory or file). This method needed to increase
        ///     directory's BytesSize.
        /// </summary>
        /// <param name="objectData">File system object to add.</param>
        public void AddFileSystemObject(FileSystemObjectData objectData)
        {
            var fileData = objectData as FileData;

            if (fileData != null)
            {
                AddBytesSize(fileData.BytesSize);
            }
        }
Example #2
0
 /// <summary>
 ///     Add to current directory child file system object (other directory or file). This method needed to increase
 ///     directory's BytesSize.
 /// </summary>
 /// <param name="objectData">File system object to add.</param>
 public void AddFileSystemObject(FileSystemObjectData objectData)
 {
     var fileData = objectData as FileData;
     if (fileData != null)
         AddBytesSize(fileData.BytesSize);
 }
        private void OnGotNewFileSystemData(FileSystemObjectData objectData)
        {
            if (_isAborted)
                return;

            EventHandler<FileSystemObjectEventArgs> handler = GotNewFileSystemData;
            if (handler != null) handler(this, new FileSystemObjectEventArgs(objectData));
        }
 public FileSystemObjectEventArgs(FileSystemObjectData fileSystemObjectData)
 {
     _fileSystemObjectData = fileSystemObjectData;
 }