Exemple #1
0
 private void treeList1_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
 {
     //if (Convert.ToBoolean(e.Node.GetValue("Mark")))
     //    e.NodeImageIndex = 0;
     //else
     //    e.NodeImageIndex = -1;
 }
 private void treeList1_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
 {
     if (e.Node.Id < imageListForTree.Images.Count)
     {
         e.NodeImageIndex = e.Node.Id;
     }
     else
     {
         e.NodeImageIndex = -1;
     }
 }
 private void treeList1_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
 {
     if (e.Node.GetDisplayText("Type") == "Folder")
     {
         e.NodeImageIndex = e.Node.Expanded ? 1 : 0;
     }
     else if (e.Node.GetDisplayText("Type") == "File")
     {
         e.NodeImageIndex = 2;
     }
     else
     {
         e.NodeImageIndex = 3;
     }
 }
Exemple #4
0
        private void treeList1_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
        {
            MD_GuideLine _gline = e.Node.GetValue(this.treeListColumn1) as MD_GuideLine;

            if (_gline == null)
            {
                return;
            }
            if (_gline.GuideLineMethod == "")
            {
                e.NodeImageIndex = 1;
            }
            else
            {
                e.NodeImageIndex = 2;
            }
        }
Exemple #5
0
 private void treeList1_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
 {
 }