From 3e4fa61e398cb7c6fa3d0173ebaf740a14992e8c Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期二, 13 八月 2024 16:11:36 +0800 Subject: [PATCH] 主界面修改 --- WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.Designer.cs | 84 ++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 56 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.Designer.cs index 7a6ab58..9522974 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.Designer.cs @@ -43,28 +43,23 @@ dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); typeTreeListCtrl2 = new SysTypeTreeListCtrl(); - layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); treeList1 = new DevExpress.XtraTreeList.TreeList(); colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); colCode = new DevExpress.XtraTreeList.Columns.TreeListColumn(); colSortCode = new DevExpress.XtraTreeList.Columns.TreeListColumn(); colDescription = new DevExpress.XtraTreeList.Columns.TreeListColumn(); catlogViewModelBindingSource = new BindingSource(components); - Root = new DevExpress.XtraLayout.LayoutControlGroup(); - layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); svgImage32 = new DevExpress.Utils.SvgImageCollection(components); + sidePanel1 = new DevExpress.XtraEditors.SidePanel(); ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)dockManager1).BeginInit(); dockPanel1.SuspendLayout(); dockPanel1_Container.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); - layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); ((System.ComponentModel.ISupportInitialize)catlogViewModelBindingSource).BeginInit(); - ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)svgImage32).BeginInit(); + sidePanel1.SuspendLayout(); SuspendLayout(); // // ribbonControl1 @@ -80,7 +75,7 @@ ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; - ribbonControl1.Size = new Size(1133, 128); + ribbonControl1.Size = new Size(933, 101); ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // // barBtnEditPumpCurve @@ -117,7 +112,7 @@ // // BtnPropEdit // - BtnPropEdit.Caption = "鐩稿簲灞炴�х紪杈�"; + BtnPropEdit.Caption = "灞炴�у垎閰�"; BtnPropEdit.Id = 18; BtnPropEdit.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnPropEdit.ImageOptions.SvgImage"); BtnPropEdit.Name = "BtnPropEdit"; @@ -155,10 +150,10 @@ dockPanel1.Controls.Add(dockPanel1_Container); dockPanel1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left; dockPanel1.ID = new Guid("20cba9f0-4c76-45ad-a0f6-714fb6b14171"); - dockPanel1.Location = new Point(0, 128); + dockPanel1.Location = new Point(0, 0); dockPanel1.Name = "dockPanel1"; dockPanel1.OriginalSize = new Size(200, 200); - dockPanel1.Size = new Size(200, 419); + dockPanel1.Size = new Size(200, 547); dockPanel1.Text = "绫诲瀷鍒楄〃"; // // dockPanel1_Container @@ -166,7 +161,7 @@ dockPanel1_Container.Controls.Add(typeTreeListCtrl2); dockPanel1_Container.Location = new Point(3, 26); dockPanel1_Container.Name = "dockPanel1_Container"; - dockPanel1_Container.Size = new Size(193, 390); + dockPanel1_Container.Size = new Size(193, 518); dockPanel1_Container.TabIndex = 0; // // typeTreeListCtrl2 @@ -176,20 +171,8 @@ typeTreeListCtrl2.Dock = DockStyle.Fill; typeTreeListCtrl2.Location = new Point(0, 0); typeTreeListCtrl2.Name = "typeTreeListCtrl2"; - typeTreeListCtrl2.Size = new Size(193, 390); + typeTreeListCtrl2.Size = new Size(193, 518); typeTreeListCtrl2.TabIndex = 0; - // - // layoutControl1 - // - layoutControl1.Controls.Add(treeList1); - layoutControl1.Dock = DockStyle.Fill; - layoutControl1.Location = new Point(200, 128); - layoutControl1.Name = "layoutControl1"; - layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(523, 367, 650, 364); - layoutControl1.Root = Root; - layoutControl1.Size = new Size(933, 419); - layoutControl1.TabIndex = 6; - layoutControl1.Text = "layoutControl1"; // // treeList1 // @@ -197,11 +180,13 @@ treeList1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colCode, colSortCode, colDescription }); treeList1.DataSource = catlogViewModelBindingSource; - treeList1.Location = new Point(2, 2); + treeList1.Dock = DockStyle.Fill; + treeList1.Location = new Point(0, 101); treeList1.MenuManager = ribbonControl1; treeList1.Name = "treeList1"; treeList1.OptionsBehavior.Editable = false; - treeList1.Size = new Size(929, 415); + treeList1.OptionsView.ShowTreeLines = DevExpress.Utils.DefaultBoolean.True; + treeList1.Size = new Size(933, 446); treeList1.TabIndex = 4; // // colName @@ -248,25 +233,6 @@ // catlogViewModelBindingSource.DataSource = typeof(SysCatalogViewModel); // - // Root - // - Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - Root.GroupBordersVisible = false; - Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1 }); - Root.Name = "Root"; - Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - Root.Size = new Size(933, 419); - Root.TextVisible = false; - // - // layoutControlItem1 - // - layoutControlItem1.Control = treeList1; - layoutControlItem1.Location = new Point(0, 0); - layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(933, 419); - layoutControlItem1.TextSize = new Size(0, 0); - layoutControlItem1.TextVisible = false; - // // barButtonItem1 // barButtonItem1.Caption = "barButtonItem1"; @@ -279,30 +245,38 @@ svgImage32.Add("bletter", "image://svgimages/outlook inspired/bletter.svg"); svgImage32.Add("bold", "image://svgimages/outlook inspired/bold.svg"); // + // sidePanel1 + // + sidePanel1.BorderThickness = 0; + sidePanel1.Controls.Add(treeList1); + sidePanel1.Controls.Add(ribbonControl1); + sidePanel1.Dock = DockStyle.Fill; + sidePanel1.Location = new Point(200, 0); + sidePanel1.Name = "sidePanel1"; + sidePanel1.Size = new Size(933, 547); + sidePanel1.TabIndex = 9; + sidePanel1.Text = "sidePanel1"; + // // SysCatalogManageMainPanel // Appearance.BackColor = SystemColors.Control; Appearance.Options.UseBackColor = true; AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - Controls.Add(layoutControl1); + Controls.Add(sidePanel1); Controls.Add(dockPanel1); - Controls.Add(ribbonControl1); Name = "SysCatalogManageMainPanel"; Size = new Size(1133, 547); ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)dockManager1).EndInit(); dockPanel1.ResumeLayout(false); dockPanel1_Container.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); - layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)treeList1).EndInit(); ((System.ComponentModel.ISupportInitialize)catlogViewModelBindingSource).EndInit(); - ((System.ComponentModel.ISupportInitialize)Root).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)svgImage32).EndInit(); + sidePanel1.ResumeLayout(false); + sidePanel1.PerformLayout(); ResumeLayout(false); - PerformLayout(); } #endregion @@ -313,8 +287,6 @@ private DevExpress.XtraBars.Docking.DockManager dockManager1; private DevExpress.XtraBars.Docking.DockPanel dockPanel1; private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container; - private DevExpress.XtraLayout.LayoutControl layoutControl1; - private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraBars.BarButtonItem barBtnEditPumpCurve; private DevExpress.XtraBars.BarButtonItem BtnAdd; private DevExpress.XtraBars.BarButtonItem BtnDelete; @@ -325,11 +297,11 @@ private DevExpress.XtraTreeList.Columns.TreeListColumn colSortCode; private DevExpress.XtraTreeList.Columns.TreeListColumn colDescription; private BindingSource catlogViewModelBindingSource; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private SysTypeTreeListCtrl typeTreeListCtrl2; private DevExpress.XtraBars.BarButtonItem BtnAddChild; private DevExpress.XtraBars.BarButtonItem BtnPropEdit; private DevExpress.Utils.SvgImageCollection svgImage32; private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; + private DevExpress.XtraEditors.SidePanel sidePanel1; } } -- Gitblit v1.9.3