Пример #1
0
        /// <summary>
        /// Load into treeview the sub-directories of received path.
        /// </summary>
        /// <param name="path">Path to load into the treeview</param>
        private void LoadSubDirectories(string path)
        {
            try
            {
                // get as childs of current path node
                var treeNodes = TreeNodeHelper.GetItemsAtPath(path);

                var currentNode = this.treeViewFolderPick.Nodes.Find(path, true)[0];
                currentNode.Nodes.Clear();
                currentNode.Nodes.AddRange(treeNodes.ToArray());
            }
            catch (Exception) { }
        }