예제 #1
0
 /// <summary>
 /// Constructs the <see cref="FileItemEventArgs"/> that represent changes to a child.
 /// </summary>
 public FileItemEventArgs(FileItemAction action, FileItemBase child, int index = -1)
     : this(action, index)
 {
     Children = new List <FileItemBase> {
         child
     };
 }
예제 #2
0
        public long GetUsedSize()
        {
            long usedSize = 0;
            int  count    = children.Count;

            for (int i = 0; i < count; i++)
            {
                FileItemBase child = children[i];
                if (child.Type != FileItemType.FreeSpace && child.Type != FileItemType.Unknown)
                {
                    usedSize += child.Size;
                }
            }
            return(usedSize);
        }