lg
2024-09-17 a8ed3d24ba97b9ee93de0f15fb15b46a9850b2fc
DevApp/Gs.DevApp/DevFrm/User/SysMenu.cs
@@ -1,4 +1,5 @@
using DevExpress.XtraTreeList;
using 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;