From 9be9ba4e159969fb5e32648c2c34e912ccc3ae6d Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 28 三月 2025 14:22:42 +0800 Subject: [PATCH] 优化细节问题 --- WinFrmUI/PBS.WinFrmUI/00-home/03-property/HomePbsProjectPropertyCtrl.Designer.cs | 284 +++++++++++++++++++++----------------------------------- 1 files changed, 105 insertions(+), 179 deletions(-) diff --git a/WinFrmUI/PBS.WinFrmUI/00-home/03-property/HomePbsProjectPropertyCtrl.Designer.cs b/WinFrmUI/PBS.WinFrmUI/00-home/03-property/HomePbsProjectPropertyCtrl.Designer.cs index 0ecfd4b..67e2fb6 100644 --- a/WinFrmUI/PBS.WinFrmUI/00-home/03-property/HomePbsProjectPropertyCtrl.Designer.cs +++ b/WinFrmUI/PBS.WinFrmUI/00-home/03-property/HomePbsProjectPropertyCtrl.Designer.cs @@ -32,50 +32,39 @@ { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(HomePbsProjectPropertyCtrl)); - DevExpress.Utils.SuperToolTip superToolTip3 = new DevExpress.Utils.SuperToolTip(); - DevExpress.Utils.ToolTipTitleItem toolTipTitleItem2 = new DevExpress.Utils.ToolTipTitleItem(); - DevExpress.Utils.ToolTipItem toolTipItem3 = new DevExpress.Utils.ToolTipItem(); - DevExpress.Utils.SuperToolTip superToolTip4 = new DevExpress.Utils.SuperToolTip(); - DevExpress.Utils.ToolTipItem toolTipItem4 = new DevExpress.Utils.ToolTipItem(); + DevExpress.Utils.SuperToolTip superToolTip1 = new DevExpress.Utils.SuperToolTip(); + DevExpress.Utils.ToolTipTitleItem toolTipTitleItem1 = new DevExpress.Utils.ToolTipTitleItem(); + DevExpress.Utils.ToolTipItem toolTipItem1 = new DevExpress.Utils.ToolTipItem(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + propertyDescriptionControl1 = new DevExpress.XtraVerticalGrid.PropertyDescriptionControl(); + propertyGridControl1 = new DevExpress.XtraVerticalGrid.PropertyGridControl(); + layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + layoutProperty = new DevExpress.XtraLayout.LayoutControlItem(); + layoutDescription = new DevExpress.XtraLayout.LayoutControlItem(); + splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); barManager1 = new DevExpress.XtraBars.BarManager(components); bar1 = new DevExpress.XtraBars.Bar(); barBtnExpandAll = new DevExpress.XtraBars.BarButtonItem(); barBtnCollpseAll = new DevExpress.XtraBars.BarButtonItem(); barBtnHelp = new DevExpress.XtraBars.BarButtonItem(); - barBtnDirect = new DevExpress.XtraBars.BarButtonItem(); barDockControlTop = new DevExpress.XtraBars.BarDockControl(); barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); barDockControlRight = new DevExpress.XtraBars.BarDockControl(); - propertyDescriptionControl1 = new DevExpress.XtraVerticalGrid.PropertyDescriptionControl(); - propertyGridControl1 = new DevExpress.XtraVerticalGrid.PropertyGridControl(); - layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - layoutProperty = new DevExpress.XtraLayout.LayoutControlItem(); - splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); - layoutDescription = new DevExpress.XtraLayout.LayoutControlItem(); bindingSource1 = new BindingSource(components); - layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); - gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); - gridControl1 = new DevExpress.XtraGrid.GridControl(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); - ((ISupportInitialize)barManager1).BeginInit(); ((ISupportInitialize)propertyGridControl1).BeginInit(); ((ISupportInitialize)layoutControlGroup1).BeginInit(); ((ISupportInitialize)layoutProperty).BeginInit(); - ((ISupportInitialize)splitterItem1).BeginInit(); ((ISupportInitialize)layoutDescription).BeginInit(); + ((ISupportInitialize)splitterItem1).BeginInit(); + ((ISupportInitialize)barManager1).BeginInit(); ((ISupportInitialize)bindingSource1).BeginInit(); - ((ISupportInitialize)layoutControlItem1).BeginInit(); - ((ISupportInitialize)gridView1).BeginInit(); - ((ISupportInitialize)gridControl1).BeginInit(); SuspendLayout(); // // layoutControl1 // - layoutControl1.Controls.Add(gridControl1); layoutControl1.Controls.Add(propertyDescriptionControl1); layoutControl1.Controls.Add(propertyGridControl1); layoutControl1.Dock = DockStyle.Fill; @@ -88,6 +77,86 @@ layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // + // propertyDescriptionControl1 + // + propertyDescriptionControl1.Location = new Point(2, 697); + propertyDescriptionControl1.Margin = new Padding(3, 4, 3, 4); + propertyDescriptionControl1.Name = "propertyDescriptionControl1"; + propertyDescriptionControl1.PropertyGrid = propertyGridControl1; + propertyDescriptionControl1.Size = new Size(293, 76); + propertyDescriptionControl1.StyleController = layoutControl1; + propertyDescriptionControl1.TabIndex = 1; + propertyDescriptionControl1.TabStop = false; + // + // propertyGridControl1 + // + propertyGridControl1.Appearance.FocusedCell.BackColor = Color.FromArgb(0, 122, 204); + propertyGridControl1.Appearance.FocusedCell.ForeColor = Color.White; + propertyGridControl1.Appearance.FocusedCell.Options.UseBackColor = true; + propertyGridControl1.Appearance.FocusedCell.Options.UseForeColor = true; + propertyGridControl1.Appearance.FocusedRow.BackColor = Color.FromArgb(0, 122, 204); + propertyGridControl1.Appearance.FocusedRow.ForeColor = Color.White; + propertyGridControl1.Appearance.FocusedRow.Options.UseBackColor = true; + propertyGridControl1.Appearance.FocusedRow.Options.UseForeColor = true; + propertyGridControl1.Appearance.ReadOnlyRecordValue.ForeColor = Color.Black; + propertyGridControl1.Appearance.ReadOnlyRecordValue.Options.UseForeColor = true; + propertyGridControl1.Appearance.ReadOnlyRow.ForeColor = Color.Black; + propertyGridControl1.Appearance.ReadOnlyRow.Options.UseForeColor = true; + propertyGridControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; + propertyGridControl1.Location = new Point(2, 2); + propertyGridControl1.Margin = new Padding(3, 4, 3, 4); + propertyGridControl1.Name = "propertyGridControl1"; + propertyGridControl1.OptionsBehavior.Editable = false; + propertyGridControl1.OptionsBehavior.PropertySort = DevExpress.XtraVerticalGrid.PropertySort.NoSort; + propertyGridControl1.OptionsHint.ShowRowHeaderHints = false; + propertyGridControl1.OptionsView.AllowReadOnlyRowAppearance = DevExpress.Utils.DefaultBoolean.True; + propertyGridControl1.OptionsView.MinRowAutoHeight = 13; + propertyGridControl1.OptionsView.ShowRootCategories = false; + propertyGridControl1.RecordWidth = 120; + propertyGridControl1.RowHeaderWidth = 80; + propertyGridControl1.Size = new Size(293, 679); + propertyGridControl1.TabIndex = 0; + propertyGridControl1.CustomRecordCellEdit += propertyGridControl1_CustomRecordCellEdit; + propertyGridControl1.CustomDrawRowValueCell += propertyGridControl1_CustomDrawRowValueCell; + propertyGridControl1.ShowingEditor += propertyGridControl1_ShowingEditor; + propertyGridControl1.CellValueChanging += propertyGridControl1_CellValueChanging; + propertyGridControl1.CellValueChanged += propertyGridControl1_CellValueChanged; + // + // layoutControlGroup1 + // + layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + layoutControlGroup1.GroupBordersVisible = false; + layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutProperty, layoutDescription, splitterItem1 }); + layoutControlGroup1.Name = "Root"; + layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); + layoutControlGroup1.Size = new Size(297, 775); + layoutControlGroup1.TextVisible = false; + // + // layoutProperty + // + layoutProperty.Control = propertyGridControl1; + layoutProperty.Location = new Point(0, 0); + layoutProperty.Name = "layoutProperty"; + layoutProperty.Size = new Size(297, 683); + layoutProperty.TextSize = new Size(0, 0); + layoutProperty.TextVisible = false; + // + // layoutDescription + // + layoutDescription.Control = propertyDescriptionControl1; + layoutDescription.Location = new Point(0, 695); + layoutDescription.Name = "layoutDescription"; + layoutDescription.Size = new Size(297, 80); + layoutDescription.TextSize = new Size(0, 0); + layoutDescription.TextVisible = false; + // + // splitterItem1 + // + splitterItem1.AllowHotTrack = true; + splitterItem1.Location = new Point(0, 683); + splitterItem1.Name = "splitterItem1"; + splitterItem1.Size = new Size(297, 12); + // // barManager1 // barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] { bar1 }); @@ -96,7 +165,7 @@ barManager1.DockControls.Add(barDockControlLeft); barManager1.DockControls.Add(barDockControlRight); barManager1.Form = this; - barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { barBtnHelp, barBtnExpandAll, barBtnCollpseAll, barBtnDirect }); + barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { barBtnHelp, barBtnExpandAll, barBtnCollpseAll }); barManager1.MaxItemId = 16; // // bar1 @@ -111,7 +180,7 @@ bar1.DockRow = 0; bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; bar1.FloatLocation = new Point(1899, 679); - bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(barBtnExpandAll), new DevExpress.XtraBars.LinkPersistInfo(barBtnCollpseAll), new DevExpress.XtraBars.LinkPersistInfo(barBtnHelp), new DevExpress.XtraBars.LinkPersistInfo(barBtnDirect) }); + bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(barBtnExpandAll), new DevExpress.XtraBars.LinkPersistInfo(barBtnCollpseAll), new DevExpress.XtraBars.LinkPersistInfo(barBtnHelp) }); bar1.OptionsBar.AllowQuickCustomization = false; bar1.OptionsBar.DrawBorder = false; bar1.OptionsBar.RotateWhenVertical = false; @@ -145,33 +214,15 @@ barBtnHelp.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnHelp.ImageOptions.SvgImage"); barBtnHelp.ImageOptions.SvgImageSize = new Size(20, 20); barBtnHelp.Name = "barBtnHelp"; - toolTipTitleItem2.Appearance.Image = (Image)resources.GetObject("resource.Image"); - toolTipTitleItem2.Appearance.Options.UseImage = true; - toolTipTitleItem2.ImageOptions.Image = (Image)resources.GetObject("resource.Image1"); - toolTipItem3.LeftIndent = 6; - toolTipItem3.Text = "鎻忚堪淇℃伅"; - superToolTip3.Items.Add(toolTipTitleItem2); - superToolTip3.Items.Add(toolTipItem3); - barBtnHelp.SuperTip = superToolTip3; + toolTipTitleItem1.Appearance.Image = (Image)resources.GetObject("resource.Image"); + toolTipTitleItem1.Appearance.Options.UseImage = true; + toolTipTitleItem1.ImageOptions.Image = (Image)resources.GetObject("resource.Image1"); + toolTipItem1.LeftIndent = 6; + toolTipItem1.Text = "鎻忚堪淇℃伅"; + superToolTip1.Items.Add(toolTipTitleItem1); + superToolTip1.Items.Add(toolTipItem1); + barBtnHelp.SuperTip = superToolTip1; barBtnHelp.ItemClick += barBtnHelp_ItemClick; - // - // barBtnDirect - // - barBtnDirect.Caption = "璺宠浆"; - barBtnDirect.Id = 15; - barBtnDirect.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnDirect.ImageOptions.SvgImage"); - barBtnDirect.ImageOptions.SvgImageSize = new Size(24, 20); - barBtnDirect.ItemAppearance.Normal.FontSizeDelta = 2; - barBtnDirect.ItemAppearance.Normal.FontStyleDelta = FontStyle.Bold; - barBtnDirect.ItemAppearance.Normal.Options.UseFont = true; - barBtnDirect.Name = "barBtnDirect"; - barBtnDirect.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; - toolTipItem4.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True; - toolTipItem4.Text = "璺宠浆"; - superToolTip4.Items.Add(toolTipItem4); - barBtnDirect.SuperTip = superToolTip4; - barBtnDirect.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; - barBtnDirect.ItemClick += barBtnDirect_ItemClick; // // barDockControlTop // @@ -209,123 +260,6 @@ barDockControlRight.Margin = new Padding(3, 4, 3, 4); barDockControlRight.Size = new Size(0, 775); // - // propertyDescriptionControl1 - // - propertyDescriptionControl1.Location = new Point(2, 679); - propertyDescriptionControl1.Margin = new Padding(3, 4, 3, 4); - propertyDescriptionControl1.Name = "propertyDescriptionControl1"; - propertyDescriptionControl1.PropertyGrid = propertyGridControl1; - propertyDescriptionControl1.Size = new Size(293, 94); - propertyDescriptionControl1.StyleController = layoutControl1; - propertyDescriptionControl1.TabIndex = 5; - propertyDescriptionControl1.TabStop = false; - // - // propertyGridControl1 - // - propertyGridControl1.Appearance.FocusedCell.BackColor = Color.FromArgb(0, 122, 204); - propertyGridControl1.Appearance.FocusedCell.ForeColor = Color.White; - propertyGridControl1.Appearance.FocusedCell.Options.UseBackColor = true; - propertyGridControl1.Appearance.FocusedCell.Options.UseForeColor = true; - propertyGridControl1.Appearance.FocusedRow.BackColor = Color.FromArgb(0, 122, 204); - propertyGridControl1.Appearance.FocusedRow.ForeColor = Color.White; - propertyGridControl1.Appearance.FocusedRow.Options.UseBackColor = true; - propertyGridControl1.Appearance.FocusedRow.Options.UseForeColor = true; - propertyGridControl1.Appearance.ReadOnlyRecordValue.ForeColor = Color.Black; - propertyGridControl1.Appearance.ReadOnlyRecordValue.Options.UseForeColor = true; - propertyGridControl1.Appearance.ReadOnlyRow.ForeColor = Color.Black; - propertyGridControl1.Appearance.ReadOnlyRow.Options.UseForeColor = true; - propertyGridControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; - propertyGridControl1.Location = new Point(2, 2); - propertyGridControl1.Margin = new Padding(3, 4, 3, 4); - propertyGridControl1.Name = "propertyGridControl1"; - propertyGridControl1.OptionsBehavior.Editable = false; - propertyGridControl1.OptionsBehavior.PropertySort = DevExpress.XtraVerticalGrid.PropertySort.NoSort; - propertyGridControl1.OptionsHint.ShowRowHeaderHints = false; - propertyGridControl1.OptionsView.AllowReadOnlyRowAppearance = DevExpress.Utils.DefaultBoolean.True; - propertyGridControl1.OptionsView.MinRowAutoHeight = 13; - propertyGridControl1.OptionsView.ShowRootCategories = false; - propertyGridControl1.RecordWidth = 120; - propertyGridControl1.RowHeaderWidth = 80; - propertyGridControl1.Size = new Size(293, 328); - propertyGridControl1.TabIndex = 4; - propertyGridControl1.CustomRecordCellEdit += propertyGridControl1_CustomRecordCellEdit; - propertyGridControl1.CustomDrawRowValueCell += propertyGridControl1_CustomDrawRowValueCell; - propertyGridControl1.ShowingEditor += propertyGridControl1_ShowingEditor; - propertyGridControl1.CellValueChanging += propertyGridControl1_CellValueChanging; - propertyGridControl1.CellValueChanged += propertyGridControl1_CellValueChanged; - // - // layoutControlGroup1 - // - layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - layoutControlGroup1.GroupBordersVisible = false; - layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutProperty, splitterItem1, layoutDescription, layoutControlItem1 }); - layoutControlGroup1.Name = "Root"; - layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlGroup1.Size = new Size(297, 775); - layoutControlGroup1.TextVisible = false; - // - // layoutProperty - // - layoutProperty.Control = propertyGridControl1; - layoutProperty.Location = new Point(0, 0); - layoutProperty.Name = "layoutProperty"; - layoutProperty.Size = new Size(297, 332); - layoutProperty.TextSize = new Size(0, 0); - layoutProperty.TextVisible = false; - // - // splitterItem1 - // - splitterItem1.AllowHotTrack = true; - splitterItem1.Location = new Point(0, 665); - splitterItem1.Name = "splitterItem1"; - splitterItem1.Size = new Size(297, 12); - // - // layoutDescription - // - layoutDescription.Control = propertyDescriptionControl1; - layoutDescription.Location = new Point(0, 677); - layoutDescription.Name = "layoutDescription"; - layoutDescription.Size = new Size(297, 98); - layoutDescription.TextSize = new Size(0, 0); - layoutDescription.TextVisible = false; - // - // layoutControlItem1 - // - layoutControlItem1.Control = gridControl1; - layoutControlItem1.Location = new Point(0, 332); - layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(297, 333); - layoutControlItem1.TextSize = new Size(0, 0); - layoutControlItem1.TextVisible = false; - // - // gridView1 - // - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { gridColumn1 }); - gridView1.GridControl = gridControl1; - gridView1.Name = "gridView1"; - gridView1.OptionsView.ShowGroupPanel = false; - gridView1.FocusedRowChanged += gridView1_FocusedRowChanged; - // - // gridColumn1 - // - gridColumn1.Caption = "椤圭洰鍚�"; - gridColumn1.FieldName = "Name"; - gridColumn1.MinWidth = 25; - gridColumn1.Name = "gridColumn1"; - gridColumn1.Visible = true; - gridColumn1.VisibleIndex = 0; - gridColumn1.Width = 94; - // - // gridControl1 - // - gridControl1.Location = new Point(2, 334); - gridControl1.MainView = gridView1; - gridControl1.MenuManager = barManager1; - gridControl1.Name = "gridControl1"; - gridControl1.Size = new Size(293, 329); - gridControl1.TabIndex = 6; - gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); - // // HomePbsProjectPropertyCtrl // AutoScaleDimensions = new SizeF(8F, 18F); @@ -340,16 +274,13 @@ Size = new Size(297, 810); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); - ((ISupportInitialize)barManager1).EndInit(); ((ISupportInitialize)propertyGridControl1).EndInit(); ((ISupportInitialize)layoutControlGroup1).EndInit(); ((ISupportInitialize)layoutProperty).EndInit(); - ((ISupportInitialize)splitterItem1).EndInit(); ((ISupportInitialize)layoutDescription).EndInit(); + ((ISupportInitialize)splitterItem1).EndInit(); + ((ISupportInitialize)barManager1).EndInit(); ((ISupportInitialize)bindingSource1).EndInit(); - ((ISupportInitialize)layoutControlItem1).EndInit(); - ((ISupportInitialize)gridView1).EndInit(); - ((ISupportInitialize)gridControl1).EndInit(); ResumeLayout(false); PerformLayout(); } @@ -359,7 +290,6 @@ private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; private DevExpress.XtraVerticalGrid.PropertyDescriptionControl propertyDescriptionControl1; - private DevExpress.XtraLayout.LayoutControlItem layoutProperty; private DevExpress.XtraBars.BarDockControl barDockControlTop; private DevExpress.XtraBars.BarDockControl barDockControlBottom; private DevExpress.XtraBars.BarDockControl barDockControlLeft; @@ -367,16 +297,12 @@ private DevExpress.XtraLayout.SplitterItem splitterItem1; private DevExpress.XtraLayout.LayoutControlItem layoutDescription; private DevExpress.XtraBars.BarManager barManager1; - private DevExpress.XtraVerticalGrid.PropertyGridControl propertyGridControl1; private DevExpress.XtraBars.BarButtonItem barBtnHelp; private DevExpress.XtraBars.Bar bar1; private DevExpress.XtraBars.BarButtonItem barBtnExpandAll; private DevExpress.XtraBars.BarButtonItem barBtnCollpseAll; - private DevExpress.XtraBars.BarButtonItem barBtnDirect; private BindingSource bindingSource1; - private DevExpress.XtraGrid.GridControl gridControl1; - private DevExpress.XtraGrid.Views.Grid.GridView gridView1; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraVerticalGrid.PropertyGridControl propertyGridControl1; + private DevExpress.XtraLayout.LayoutControlItem layoutProperty; } } -- Gitblit v1.9.3