Esempio n. 1
0
        private void gtv_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
        {
            VistaItem aItem = e.Node.Data as VistaItem;

            switch (e.DisplayColumn)
            {
            case 0:
                e.Text = aItem.Name;
                break;

            case 1:
                Int64 size = aItem.Size;
                if (size >= 0)
                {
                    e.Text = size.ToString();
                }
                else
                {
                    e.Text = string.Empty;
                }
                break;

            case 2:
                e.Text = aItem.FileType;
                break;

            case 3:
                if (aItem.Date > DateTime.MinValue)
                {
                    e.Text = aItem.Date.ToString();
                }
                break;
            }
        }
Esempio n. 2
0
 private void geniusTreeView1_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
 {
     if (e.Text == null || e.Text.Length == 0)
     {
         e.Text = "Node " + e.Node.Index.ToString();
     }
 }
Esempio n. 3
0
 private void geniusTreeView1_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
 {
     if (e.DisplayColumn == 2)
     {
         GroupItem item = e.Node.Data as GroupItem;
         if (item != null)
         {
             e.Text = item.value.ToString();
         }
         else
         {
             GroupTotal tot = e.Node.Data as GroupTotal;
             if (tot != null)
             {
                 e.Text = tot.value.ToString();
             }
         }
     }
 }
Esempio n. 4
0
        private void gtv_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
        {
            int aCol = gtv.Header.DisplayIndexToIndex(e.DisplayColumn);

            if (aCol == 0)
            {
                e.Text = (e.Node.Level * 10 + e.Node.Index).ToString();
            }
        }
Esempio n. 5
0
 private void geniusTreeView1_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
 {
     if (geniusTreeView1.Header.DisplayIndexToIndex(e.DisplayColumn) == 2)
     {
         DataNodeImage data = e.Node.Data as DataNodeImage;
         if (data != null)
         {
             LoadBitmap(data);
             if (data.Bmp != null)
             {
                 e.Text = data.size.ToString();
             }
         }
     }
 }
Esempio n. 6
0
 private void gtv_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
 {
     if (e.DisplayColumn > 0 && e.DisplayColumn < 6)
     {
         e.Text = ((NodeData)e.Node.Data).FColumns[e.DisplayColumn - 1].ToString();
     }
 }
Esempio n. 7
0
 private void geniusTreeView1_OnGetNodeText(Genius.Controls.TreeView.GeniusTreeView Sender, Genius.Controls.TreeView.NodeTextEventArgs e)
 {
     if (e.DisplayColumn > 0)
     {
         e.Text = string.Format("Cell({0},{1})", e.DisplayColumn, e.Node.Index);
     }
 }