Esempio n. 1
0
 private void treeList1_CustomDrawNodeImages(object sender, DevExpress.XtraTreeList.CustomDrawNodeImagesEventArgs e)
 {
     if (e.Node.Focused)
     {
         e.Cache.FillRectangle(e.Cache.GetSolidBrush(Color.Orange), e.StateRect);
     }
     e.DefaultDraw();
 }
Esempio n. 2
0
 private void treeList1_CustomDrawNodeImages(object sender, DevExpress.XtraTreeList.CustomDrawNodeImagesEventArgs e)
 {
     if (e.Node.Nodes.Count > 0)
     {
         if (e.Node.Expanded)
         {
             e.SelectImageIndex = 1;
             return;
         }
         e.SelectImageIndex = 0;
     }
     else
     {
         e.SelectImageIndex = 0;
     }
 }