Sort node selection from treelistview before iterating on copy-paste.

This commit is contained in:
baldurk
2016-11-13 13:50:40 +01:00
parent 936d86d7c3
commit f7e939cda9
8 changed files with 23 additions and 6 deletions
@@ -1100,12 +1100,12 @@ namespace TreelistView
return m_nodesMap.ContainsKey(node);
}
public IList<Node> GetSortedNodes()
public void Sort()
{
SortedList<string, Node> list = new SortedList<string,Node>();
foreach (Node node in m_nodes)
list.Add(node.GetId(), node);
return list.Values;
m_nodes = new List<Node>(list.Values);
}
}
@@ -378,6 +378,11 @@ namespace TreelistView
get { return m_nodesSelection; }
}
public void SortNodesSelection()
{
m_nodesSelection.Sort();
}
[Browsable(false)]
public Node SelectedNode
{