Use FolderInfoList.SortedChildList to get the folders in the correct order

This commit is contained in:
Rich
2016-10-26 13:12:04 +00:00
parent 91da0b995f
commit d6c2a6f379
5 changed files with 10 additions and 10 deletions

View File

@@ -380,7 +380,7 @@ namespace Volian.Controls.Library
{
int indx = -1;
int pathid = filist[filist.Count - 1].FolderID;
foreach (FolderInfo fic in fi.ChildFolders)
foreach (FolderInfo fic in fi.SortedChildFolders)
{
DropDownNode newnode = new DropDownNode(fic.FolderID, fic.ToString());
int tmp = topnode==null?vlnTreeComboSets.DropDownControl.Nodes.Add(newnode):topnode.Nodes.Add(newnode);
@@ -680,7 +680,7 @@ namespace Volian.Controls.Library
FolderInfo fi = (FolderInfo)obj;
if (fi.ChildFolderCount > 0)
{
foreach (FolderInfo fic in fi.ChildFolders)
foreach (FolderInfo fic in fi.SortedChildFolders)
{
DropDownNode newnode = new DropDownNode(fic.FolderID, fic.ToString());
par.Nodes.Add(newnode);