private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            PanelTreeNodeHelper ptnh = listBox1.SelectedItem as PanelTreeNodeHelper;

            if (null != ptnh)
            {
                TreeNode tn = ptnh.TreeNode;
                tv.CollapseAll();
                tv.SelectedNode = tn;
                tv.Select();
                tn.Expand();
            }
        }
Esempio n. 2
0
 public static int CompareByName( PanelTreeNodeHelper x, PanelTreeNodeHelper y )
 {
     return string.Compare( x.ToString(), y.ToString() );
 }
Esempio n. 3
0
 public static int CompareByName(PanelTreeNodeHelper x, PanelTreeNodeHelper y)
 {
     return(string.Compare(x.ToString(), y.ToString()));
 }