From 00f75453f7c1d91e898beb830222f37db6058168 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 14 十月 2024 13:29:00 +0800 Subject: [PATCH] 1 --- WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.Designer.cs | 148 ++++++++++++++++++++---------------------------- 1 files changed, 62 insertions(+), 86 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.Designer.cs index d955d30..f08490f 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.Designer.cs @@ -50,19 +50,17 @@ gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); colName = new DevExpress.XtraGrid.Columns.GridColumn(); colCode = new DevExpress.XtraGrid.Columns.GridColumn(); - colExtendTypeDisPlayName = new DevExpress.XtraGrid.Columns.GridColumn(); colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); colDefaultValue = new DevExpress.XtraGrid.Columns.GridColumn(); colFormat = new DevExpress.XtraGrid.Columns.GridColumn(); colIsNull = new DevExpress.XtraGrid.Columns.GridColumn(); colUnitName = new DevExpress.XtraGrid.Columns.GridColumn(); - layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - Root = new DevExpress.XtraLayout.LayoutControlGroup(); - layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); ColPropEdit = new DevExpress.XtraGrid.Columns.GridColumn(); repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); + 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(); @@ -70,28 +68,25 @@ ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)propViewModelBindingSource).BeginInit(); ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); - layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)svgImage32).BeginInit(); + sidePanel1.SuspendLayout(); SuspendLayout(); // // ribbonControl1 // - ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ExpandCollapseItem.Id = 0; ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnEditPumpCurve, BtnAdd, BtnDelete }); ribbonControl1.Location = new Point(0, 0); - ribbonControl1.MaxItemId = 17; + ribbonControl1.MaxItemId = 19; ribbonControl1.Name = "ribbonControl1"; ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; - ribbonControl1.Size = new Size(1133, 77); + ribbonControl1.Size = new Size(933, 101); ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // // barBtnEditPumpCurve @@ -130,10 +125,12 @@ ribbonPageGroup1.ItemLinks.Add(barBtnEditPumpCurve); ribbonPageGroup1.ItemLinks.Add(BtnDelete); ribbonPageGroup1.Name = "ribbonPageGroup1"; - ribbonPageGroup1.Text = "ribbonPageGroup1"; + ribbonPageGroup1.Text = "鍩虹鍔熻兘"; // // dockManager1 // + dockManager1.DockingOptions.ShowAutoHideButton = false; + dockManager1.DockingOptions.ShowCloseButton = false; dockManager1.Form = this; dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanel1 }); dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.MenuStrip", "System.Windows.Forms.StatusStrip", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl", "DevExpress.XtraBars.Navigation.OfficeNavigationBar", "DevExpress.XtraBars.Navigation.TileNavPane", "DevExpress.XtraBars.TabFormControl", "DevExpress.XtraBars.FluentDesignSystem.FluentDesignFormControl", "DevExpress.XtraBars.ToolbarForm.ToolbarFormControl" }); @@ -143,10 +140,11 @@ 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, 77); + dockPanel1.Location = new Point(0, 0); + dockPanel1.Margin = new Padding(0); dockPanel1.Name = "dockPanel1"; dockPanel1.OriginalSize = new Size(200, 200); - dockPanel1.Size = new Size(200, 470); + dockPanel1.Size = new Size(200, 547); dockPanel1.Text = "灞炴�х粍鍒楄〃"; // // dockPanel1_Container @@ -154,7 +152,7 @@ dockPanel1_Container.Controls.Add(propGroupTreeListCtrl1); dockPanel1_Container.Location = new Point(3, 26); dockPanel1_Container.Name = "dockPanel1_Container"; - dockPanel1_Container.Size = new Size(193, 441); + dockPanel1_Container.Size = new Size(193, 518); dockPanel1_Container.TabIndex = 0; // // propGroupTreeListCtrl1 @@ -164,18 +162,19 @@ propGroupTreeListCtrl1.Dock = DockStyle.Fill; propGroupTreeListCtrl1.Location = new Point(0, 0); propGroupTreeListCtrl1.Name = "propGroupTreeListCtrl1"; - propGroupTreeListCtrl1.Size = new Size(193, 441); + propGroupTreeListCtrl1.Size = new Size(193, 518); propGroupTreeListCtrl1.TabIndex = 0; // // gridControl1 // gridControl1.DataSource = propViewModelBindingSource; - gridControl1.Location = new Point(2, 2); + gridControl1.Dock = DockStyle.Fill; + gridControl1.Location = new Point(0, 101); gridControl1.MainView = gridView1; gridControl1.MenuManager = ribbonControl1; gridControl1.Name = "gridControl1"; gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); - gridControl1.Size = new Size(929, 466); + gridControl1.Size = new Size(933, 446); gridControl1.TabIndex = 3; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // @@ -187,10 +186,12 @@ // gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colExtendTypeDisPlayName, colSortCode, colDescription, colDefaultValue, colFormat, colIsNull, colUnitName, ColPropEdit }); + gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colSortCode, colDescription, colDefaultValue, colFormat, colIsNull, colUnitName, ColPropEdit }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; gridView1.OptionsView.ShowGroupPanel = false; + gridView1.RowCellClick += gridView1_RowCellClick; // // colName // @@ -212,16 +213,6 @@ colCode.Visible = true; colCode.VisibleIndex = 1; // - // colExtendTypeDisPlayName - // - colExtendTypeDisPlayName.AppearanceCell.Options.UseTextOptions = true; - colExtendTypeDisPlayName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - colExtendTypeDisPlayName.Caption = "鎷撳睍绫诲瀷"; - colExtendTypeDisPlayName.FieldName = "ExtendTypeDisPlayName"; - colExtendTypeDisPlayName.Name = "colExtendTypeDisPlayName"; - colExtendTypeDisPlayName.Visible = true; - colExtendTypeDisPlayName.VisibleIndex = 2; - // // colSortCode // colSortCode.AppearanceCell.Options.UseTextOptions = true; @@ -240,7 +231,7 @@ colDescription.FieldName = "Description"; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 8; + colDescription.VisibleIndex = 6; // // colDefaultValue // @@ -248,15 +239,15 @@ colDefaultValue.FieldName = "DefaultValue"; colDefaultValue.Name = "colDefaultValue"; colDefaultValue.Visible = true; - colDefaultValue.VisibleIndex = 3; + colDefaultValue.VisibleIndex = 2; // // colFormat // colFormat.Caption = "鏍煎紡"; - colFormat.FieldName = "Format"; + colFormat.FieldName = "FormatDisPlayName"; colFormat.Name = "colFormat"; colFormat.Visible = true; - colFormat.VisibleIndex = 4; + colFormat.VisibleIndex = 3; // // colIsNull // @@ -264,7 +255,7 @@ colIsNull.FieldName = "IsNull"; colIsNull.Name = "colIsNull"; colIsNull.Visible = true; - colIsNull.VisibleIndex = 6; + colIsNull.VisibleIndex = 5; // // colUnitName // @@ -272,43 +263,7 @@ colUnitName.FieldName = "UnitName"; colUnitName.Name = "colUnitName"; colUnitName.Visible = true; - colUnitName.VisibleIndex = 5; - // - // layoutControl1 - // - layoutControl1.Controls.Add(gridControl1); - layoutControl1.Dock = DockStyle.Fill; - layoutControl1.Location = new Point(200, 77); - layoutControl1.Name = "layoutControl1"; - layoutControl1.Root = Root; - layoutControl1.Size = new Size(933, 470); - layoutControl1.TabIndex = 6; - layoutControl1.Text = "layoutControl1"; - // - // 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, 470); - Root.TextVisible = false; - // - // layoutControlItem1 - // - layoutControlItem1.Control = gridControl1; - layoutControlItem1.Location = new Point(0, 0); - layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(933, 470); - layoutControlItem1.TextSize = new Size(0, 0); - layoutControlItem1.TextVisible = false; - // - // barButtonItem1 - // - barButtonItem1.Caption = "barButtonItem1"; - barButtonItem1.Id = 14; - barButtonItem1.Name = "barButtonItem1"; + colUnitName.VisibleIndex = 4; // // ColPropEdit // @@ -317,7 +272,7 @@ ColPropEdit.Name = "ColPropEdit"; ColPropEdit.OptionsColumn.AllowEdit = false; ColPropEdit.Visible = true; - ColPropEdit.VisibleIndex = 9; + ColPropEdit.VisibleIndex = 8; // // repositoryItemButtonEdit1 // @@ -325,15 +280,40 @@ editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); 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; // - // PropManageCtrl + // barButtonItem1 // + barButtonItem1.Caption = "barButtonItem1"; + barButtonItem1.Id = 14; + barButtonItem1.Name = "barButtonItem1"; + // + // svgImage32 + // + svgImage32.ImageSize = new Size(32, 32); + svgImage32.Add("documentproperties", "image://svgimages/richedit/documentproperties.svg"); + // + // sidePanel1 + // + sidePanel1.BorderThickness = 0; + sidePanel1.Controls.Add(gridControl1); + 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"; + // + // SysPropManageMainPanel + // + 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 = "PropManageCtrl"; + Name = "SysPropManageMainPanel"; Size = new Size(1133, 547); ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)dockManager1).EndInit(); @@ -342,13 +322,11 @@ ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)propViewModelBindingSource).EndInit(); ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); - layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)Root).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit(); + ((System.ComponentModel.ISupportInitialize)svgImage32).EndInit(); + sidePanel1.ResumeLayout(false); + sidePanel1.PerformLayout(); ResumeLayout(false); - PerformLayout(); } #endregion @@ -361,9 +339,6 @@ private DevExpress.XtraGrid.Views.Grid.GridView gridView1; 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.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraBars.BarButtonItem barBtnEditPumpCurve; private DevExpress.XtraBars.BarButtonItem BtnAdd; private DevExpress.XtraBars.BarButtonItem BtnDelete; @@ -372,7 +347,6 @@ private DevExpress.XtraGrid.Columns.GridColumn colCode; private DevExpress.XtraGrid.Columns.GridColumn colSortCode; private DevExpress.XtraGrid.Columns.GridColumn colDescription; - private DevExpress.XtraGrid.Columns.GridColumn colExtendTypeDisPlayName; private BindingSource propViewModelBindingSource; private DevExpress.XtraGrid.Columns.GridColumn colDefaultValue; private DevExpress.XtraGrid.Columns.GridColumn colFormat; @@ -381,5 +355,7 @@ private SysPropGroupTreeListCtrl propGroupTreeListCtrl1; private DevExpress.XtraGrid.Columns.GridColumn ColPropEdit; private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; + private DevExpress.Utils.SvgImageCollection svgImage32; + private DevExpress.XtraEditors.SidePanel sidePanel1; } } -- Gitblit v1.9.3