| | |
| | | using DevExpress.XtraTreeList; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using DevExpress.XtraTreeList; |
| | | using DevExpress.XtraTreeList.Nodes; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | 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> |
| | |
| | | /// <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; |