Use FolderInfoList.SortedChildList to get the folders in the correct order
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user