From 8eb1a19c55846f70b3b6bf43e32c2e94333d52e7 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期六, 30 十一月 2024 13:07:34 +0800 Subject: [PATCH] epanet 计算完善 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeListCtrl.Designer.cs | 78 +++++++++++++++++---------------------- 1 files changed, 34 insertions(+), 44 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 8996c0f..916bab8 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,19 +30,17 @@ { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(HomeXhsProjectTreeListCtrl)); - DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); + DevExpress.Utils.SuperToolTip superToolTip1 = new DevExpress.Utils.SuperToolTip(); + DevExpress.Utils.ToolTipItem toolTipItem1 = new DevExpress.Utils.ToolTipItem(); + EditorButtonImageOptions editorButtonImageOptions1 = new 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(); + btnImportProject = new 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(); @@ -54,8 +52,9 @@ barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); barDockControlRight = new DevExpress.XtraBars.BarDockControl(); + repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); imageCollection1 = new DevExpress.Utils.ImageCollection(components); - searchControl1 = new DevExpress.XtraEditors.SearchControl(); + searchControl1 = new SearchControl(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -63,8 +62,8 @@ ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)treeList1).BeginInit(); - ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); ((ISupportInitialize)barManager1).BeginInit(); + ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); ((ISupportInitialize)imageCollection1).BeginInit(); ((ISupportInitialize)searchControl1.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); @@ -94,12 +93,12 @@ btnImportProject.Appearance.Options.UseBackColor = true; btnImportProject.Appearance.Options.UseForeColor = true; btnImportProject.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; - btnImportProject.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter; + btnImportProject.ImageOptions.ImageToTextAlignment = ImageAlignToText.LeftCenter; btnImportProject.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnImportProject.ImageOptions.SvgImage"); btnImportProject.ImageOptions.SvgImageSize = new Size(24, 24); - btnImportProject.Location = new Point(0, 607); + btnImportProject.Location = new Point(0, 612); btnImportProject.Name = "btnImportProject"; - btnImportProject.Size = new Size(235, 28); + btnImportProject.Size = new Size(235, 23); btnImportProject.StyleController = layoutControl1; btnImportProject.TabIndex = 6; btnImportProject.Text = "瀵煎叆椤圭洰"; @@ -107,25 +106,28 @@ // // treeList1 // - treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colJump }); + treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName }); 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.OptionsView.RowImagesShowMode = DevExpress.XtraTreeList.RowImagesShowMode.InIndent; + treeList1.OptionsView.ShowIndentAsRowStyle = true; treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); - treeList1.Size = new Size(235, 581); - treeList1.StateImageList = imageCollection1; + treeList1.SelectImageList = imageCollection1; + treeList1.Size = new Size(235, 586); treeList1.TabIndex = 5; + treeList1.TreeViewFieldName = "Name"; treeList1.ViewStyle = DevExpress.XtraTreeList.TreeListViewStyle.TreeView; - treeList1.RowCellClick += treeList1_RowCellClick; treeList1.FocusedNodeChanged += treeList1_FocusedNodeChanged; + treeList1.DoubleClick += treeList1_DoubleClick; // // colName // colName.AppearanceCell.Options.UseTextOptions = true; - colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; + colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; colName.Caption = "鍚嶇О"; colName.FieldName = "Name"; colName.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("colName.ImageOptions.SvgImage"); @@ -133,25 +135,6 @@ 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 // @@ -253,6 +236,14 @@ barDockControlRight.Manager = barManager1; barDockControlRight.Size = new Size(0, 636); // + // repositoryItemButtonEdit1 + // + repositoryItemButtonEdit1.AutoHeight = false; + editorButtonImageOptions1.SvgImageSize = new Size(20, 20); + repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(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 = TextEditStyles.HideTextEditor; + // // imageCollection1 // imageCollection1.ImageStream = (DevExpress.Utils.ImageCollectionStreamer)resources.GetObject("imageCollection1.ImageStream"); @@ -264,7 +255,7 @@ searchControl1.Location = new Point(0, 2); searchControl1.MenuManager = barManager1; searchControl1.Name = "searchControl1"; - searchControl1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Repository.ClearButton(), new DevExpress.XtraEditors.Repository.SearchButton() }); + searchControl1.Properties.Buttons.AddRange(new EditorButton[] { new DevExpress.XtraEditors.Repository.ClearButton(), new DevExpress.XtraEditors.Repository.SearchButton() }); searchControl1.Properties.Client = treeList1; searchControl1.Size = new Size(235, 20); searchControl1.StyleController = layoutControl1; @@ -296,19 +287,19 @@ layoutControlItem2.Location = new Point(0, 23); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 1, 1); - layoutControlItem2.Size = new Size(235, 583); + layoutControlItem2.Size = new Size(235, 588); layoutControlItem2.TextSize = new Size(0, 0); layoutControlItem2.TextVisible = false; // // layoutControlItem3 // layoutControlItem3.Control = btnImportProject; - layoutControlItem3.Location = new Point(0, 606); - layoutControlItem3.MaxSize = new Size(0, 30); - layoutControlItem3.MinSize = new Size(100, 30); + layoutControlItem3.Location = new Point(0, 611); + layoutControlItem3.MaxSize = new Size(0, 25); + layoutControlItem3.MinSize = new Size(82, 25); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 1, 1); - layoutControlItem3.Size = new Size(235, 30); + layoutControlItem3.Size = new Size(235, 25); layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem3.TextSize = new Size(0, 0); layoutControlItem3.TextVisible = false; @@ -327,8 +318,8 @@ ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)treeList1).EndInit(); - ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); ((ISupportInitialize)barManager1).EndInit(); + ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); ((ISupportInitialize)imageCollection1).EndInit(); ((ISupportInitialize)searchControl1.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); @@ -362,7 +353,6 @@ 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; + private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; } } -- Gitblit v1.9.3