Exemple #1
0
        private void LoadParentSubDirectories(IList <DirectoryInfo> parentSubDir,
                                              ObservableCollection <VideoFolder> existingchildren, VideoFolder parentdir)
        {
            for (int i = 0; i < parentSubDir.Count; i++)
            {
                if (parentSubDir[i] == null)
                {
                    continue;
                }
                VideoFolder child        = LoadDirInfo(parentdir, parentSubDir[i]);
                var         originalcopy = MovieDataSource.GetExistingCopy(child);
                if (originalcopy != null)
                {
                    child = originalcopy;
                    child.SetParentDirectory(parentdir);
                }

                existingchildren.Add(child);
            }
            if (parentSubDir.Count > 0)
            {
                parentdir.HasSubFolders = true;
            }
        }