Beispiel #1
0
        private void LoadRoot()
        {
            CaptureManager.EnsureRoot();
            this.root.Tag = new DirectoryInfo(CaptureManager.CaptureRoot);
            AssignImageIndexes(this.root);

            this.treeViewFolders.Nodes.Add(this.root);
            this.treeViewFolders.SelectedNode = this.root;

            this.LoadFolder(CaptureManager.CaptureRoot, this.root);
            this.root.Expand();
        }
Beispiel #2
0
        private void LoadFolder(string Path, TreeNode Parent)
        {
            this.listViewFiles.Items.Clear();
            Parent.Nodes.Clear();
            var directories = CaptureManager.LoadCaptureFolder(Path);

            foreach (var folder in directories)
            {
                AddNewDirectoryTreeNode(Parent, folder);
            }

            var c = CaptureManager.LoadCaptures(Path);

            foreach (var cap in c)
            {
                AddNewCaptureListViewItem(cap);
            }
        }