Пример #1
0
 private void gtv_OnInitNode(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeEventArgs e)
 {
     if (e.Node.Data is VistaGroup)
     {
         e.Node.Height = gtv.DefaultNodeHeight + gtv.DefaultNodeHeight / 2;
     }
 }
Пример #2
0
        private void gtv_OnInitNode(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeEventArgs e)
        {
            int value = (int)e.Node.Data;

            if (value % 2 == 0)
            {
                e.Node.State &= (~NodeState.Visible);
            }
        }
Пример #3
0
 private void gtv_OnInitNode(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeEventArgs e)
 {
     if (e.Node.Data is ArrayList)
     {
         e.Node.Text = "Node with sub-nodes";
     }
     else
     {
         e.Node.Text = e.Node.Data.ToString();
     }
 }
Пример #4
0
 private void geniusTreeView1_OnAfterCollapse(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeEventArgs e)
 {
     edResult.AppendText(string.Format("OnAfterCollapse({0})\r\n", e.Node.Index));
 }