From 24965a48d0abbb050d90941f0e00825825fd9040 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期日, 01 九月 2024 22:03:16 +0800 Subject: [PATCH] 优化水泵管理界面 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 46 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs index 0c73589..8996c0f 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs @@ -30,12 +30,19 @@ { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(HomeXhsProjectTreeListCtrl)); + DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); + DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); + DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); + DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); + DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SuperToolTip superToolTip1 = new DevExpress.Utils.SuperToolTip(); DevExpress.Utils.ToolTipItem toolTipItem1 = new DevExpress.Utils.ToolTipItem(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); btnImportProject = new DevExpress.XtraEditors.SimpleButton(); treeList1 = new DevExpress.XtraTreeList.TreeList(); colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colJump = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); barManager1 = new DevExpress.XtraBars.BarManager(components); bar1 = new DevExpress.XtraBars.Bar(); barBtnExpandAll = new DevExpress.XtraBars.BarButtonItem(); @@ -47,6 +54,7 @@ barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); barDockControlRight = new DevExpress.XtraBars.BarDockControl(); + imageCollection1 = new DevExpress.Utils.ImageCollection(components); searchControl1 = new DevExpress.XtraEditors.SearchControl(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -55,7 +63,9 @@ ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)treeList1).BeginInit(); + ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); ((ISupportInitialize)barManager1).BeginInit(); + ((ISupportInitialize)imageCollection1).BeginInit(); ((ISupportInitialize)searchControl1.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); @@ -97,14 +107,16 @@ // // treeList1 // - treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName }); + treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colJump }); treeList1.Location = new Point(0, 24); treeList1.MenuManager = barManager1; treeList1.Name = "treeList1"; treeList1.OptionsMenu.EnableNodeMenu = false; treeList1.OptionsSelection.EnableAppearanceFocusedCell = false; treeList1.OptionsView.FocusRectStyle = DevExpress.XtraTreeList.DrawFocusRectStyle.None; + treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); treeList1.Size = new Size(235, 581); + treeList1.StateImageList = imageCollection1; treeList1.TabIndex = 5; treeList1.ViewStyle = DevExpress.XtraTreeList.TreeListViewStyle.TreeView; treeList1.RowCellClick += treeList1_RowCellClick; @@ -112,11 +124,34 @@ // // colName // + colName.AppearanceCell.Options.UseTextOptions = true; + colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; colName.Caption = "鍚嶇О"; colName.FieldName = "Name"; + colName.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("colName.ImageOptions.SvgImage"); colName.Name = "colName"; colName.Visible = true; colName.VisibleIndex = 0; + colName.Width = 172; + // + // colJump + // + colJump.Caption = "treeListColumn1"; + colJump.ColumnEdit = repositoryItemButtonEdit1; + colJump.FieldName = "treeListColumn1"; + colJump.Name = "colJump"; + colJump.Visible = true; + colJump.VisibleIndex = 1; + colJump.Width = 61; + // + // repositoryItemButtonEdit1 + // + repositoryItemButtonEdit1.AutoHeight = false; + editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); + editorButtonImageOptions1.SvgImageSize = new Size(20, 20); + repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); + repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; + repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; // // barManager1 // @@ -218,6 +253,11 @@ barDockControlRight.Manager = barManager1; barDockControlRight.Size = new Size(0, 636); // + // imageCollection1 + // + imageCollection1.ImageStream = (DevExpress.Utils.ImageCollectionStreamer)resources.GetObject("imageCollection1.ImageStream"); + imageCollection1.Images.SetKeyName(0, "NotImported.png"); + // // searchControl1 // searchControl1.Client = treeList1; @@ -287,7 +327,9 @@ ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)treeList1).EndInit(); + ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); ((ISupportInitialize)barManager1).EndInit(); + ((ISupportInitialize)imageCollection1).EndInit(); ((ISupportInitialize)searchControl1.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); @@ -319,5 +361,8 @@ private DevExpress.XtraEditors.SimpleButton btnImportProject; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraBars.BarButtonItem barBtnRefresh; + private DevExpress.Utils.ImageCollection imageCollection1; + private DevExpress.XtraTreeList.Columns.TreeListColumn colJump; + private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; } } -- Gitblit v1.9.3