1
0
mirror of synced 2024-11-30 18:24:39 +01:00
Switch-Toolbox/Switch_Toolbox_Library/Forms/Custom/Treeview/MultiselectTreeView.cs

42 lines
693 B
C#

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Toolbox.Library;
namespace Toolbox.Library.Forms
{
public class MultiselectTreeView : TreeView
{
#region Public Properties
private List<TreeNode> m_SelectedNodes = null;
public List<TreeNode> SelectedNodes
{
get
{
return new List<TreeNode>() { SelectedNode };
}
set
{
//ClearSelectedNodes();
if (value != null)
{
foreach (TreeNode node in value)
{
//ToggleNode(node, true);
}
}
}
}
#endregion
public MultiselectTreeView()
{
m_SelectedNodes = new List<TreeNode>();
base.SelectedNode = null;
}
}
}