From a8ed3d24ba97b9ee93de0f15fb15b46a9850b2fc Mon Sep 17 00:00:00 2001
From: lg <999544862qq.com>
Date: 星期二, 17 九月 2024 16:58:39 +0800
Subject: [PATCH] 基础资料

---
 DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs b/DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs
index 9fee2da..81f995e 100644
--- a/DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs
+++ b/DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs
@@ -1,4 +1,5 @@
-锘縰sing DevExpress.XtraTreeList;
+锘縰sing DevExpress.XtraEditors.Controls;
+using DevExpress.XtraTreeList;
 using DevExpress.XtraTreeList.Nodes;
 using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
@@ -27,6 +28,27 @@
             getTree();
             getDownList();
             getActionList();
+            txt_upGuid.Properties.PopupFormSize = new System.Drawing.Size(txt_upGuid.Width, 300);
+            txt_upGuid.Properties.ImmediatePopup = true;
+            txt_upGuid.Properties.TextEditStyle = TextEditStyles.Standard;
+            txt_upGuid.Properties.TreeList.IndicatorWidth = 50;
+            txt_upGuid.Properties.TreeList.CustomDrawNodeIndicator += (s, ee) =>
+            {
+                if (ee.IsNodeIndicator)
+                {
+                    var index = ee.Node.TreeList.GetVisibleIndexByNode(ee.Node);
+                    ee.Info.DisplayText = (index + 1).ToString();
+                }
+            };
+            tlMenu.IndicatorWidth = 50;
+            tlMenu.CustomDrawNodeIndicator += (s, ee) =>
+            {
+                if (ee.IsNodeIndicator)
+                {
+                    var index = ee.Node.TreeList.GetVisibleIndexByNode(ee.Node);
+                    ee.Info.DisplayText = (index + 1).ToString();
+                }
+            };
         }
 
         /// <summary>
@@ -36,7 +58,7 @@
         /// <param name="e"></param>
         private void Txt_category_TextChanged(object sender, EventArgs e)
         {
-            if (txt_category.SelectedIndex ==1)
+            if (txt_category.SelectedIndex == 1)
             {
                 this.txt_formPath.Enabled = true;
                 this.txt_icon.Enabled = true;

--
Gitblit v1.9.3