Пример #1
0
        internal long GetFilesVolume(out int _numOfFiles)
        {
            long retval   = 0;
            int  numFiles = 0;

            foreach (ArticleFile a in this.library)
            {
                retval += DiskIO.GetFileSize(a.file);
                numFiles++;
                if (!string.IsNullOrEmpty(a.cover))
                {
                    retval += DiskIO.GetFileSize(a.cover);
                    numFiles++;
                }
            }
            _numOfFiles = numFiles;
            return(retval);
        }
Пример #2
0
        internal long GetFilesVolume(out int _numOfFiles)
        {
            long retval   = 0;
            int  numFiles = 0;

            foreach (MovieFile m in this.library)
            {
                retval += DiskIO.GetFileSize(m.video.path);
                numFiles++;
                if (!string.IsNullOrEmpty(m.trailer.path))
                {
                    retval += DiskIO.GetFileSize(m.trailer.path); numFiles++;
                }
                if (!string.IsNullOrEmpty(m.cover))
                {
                    retval += DiskIO.GetFileSize(m.cover); numFiles++;
                }
            }
            _numOfFiles = numFiles;
            return(retval);
        }
Пример #3
0
        internal long GetFilesVolume(out int _numberOfFiles)
        {
            long retval   = 0;
            int  numFiles = 0;

            foreach (MusicPlaylist p in this.library)
            {
                foreach (MusicFile file in p.GetMusicFilesInfo())
                {
                    retval += DiskIO.GetFileSize(file.file);
                    numFiles++;
                }
                if (p.cover != "")
                {
                    retval += DiskIO.GetFileSize(p.cover);
                    numFiles++;
                }
            }
            _numberOfFiles = numFiles;
            return(retval);
        }