From c9585ab171fb973d16792d7a290994bf8279da63 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期六, 09 十一月 2024 09:56:41 +0800 Subject: [PATCH] 属性视图调整 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/19-compressor/SetHydroCompressorDlg.Designer.cs | 137 +++++++++++++++------------------------------ 1 files changed, 45 insertions(+), 92 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/19-compressor/SetHydroCompressorDlg.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/19-compressor/SetHydroCompressorDlg.Designer.cs similarity index 66% copy from WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/19-compressor/SetHydroCompressorDlg.Designer.cs copy to WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/19-compressor/SetHydroCompressorDlg.Designer.cs index e9eda60..7ff0b25 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/19-compressor/SetHydroCompressorDlg.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/19-compressor/SetHydroCompressorDlg.Designer.cs @@ -34,17 +34,14 @@ txtMinorLoss = new DevExpress.XtraEditors.TextEdit(); txtDiameter = new DevExpress.XtraEditors.TextEdit(); imgCmbLinkStatus = new DevExpress.XtraEditors.ImageComboBoxEdit(); - btnOk = new DevExpress.XtraEditors.SimpleButton(); - btnCancel = new DevExpress.XtraEditors.SimpleButton(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); - layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); + generalOkAndCancelCtrl1 = new GeneralOkAndCancelCtrl(); + layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)txtMaterial.Properties).BeginInit(); @@ -52,49 +49,46 @@ ((ISupportInitialize)txtDiameter.Properties).BeginInit(); ((ISupportInitialize)imgCmbLinkStatus.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); - ((ISupportInitialize)layoutControlItem2).BeginInit(); - ((ISupportInitialize)layoutControlItem3).BeginInit(); - ((ISupportInitialize)emptySpaceItem1).BeginInit(); ((ISupportInitialize)layoutControlItem10).BeginInit(); ((ISupportInitialize)layoutControlItem8).BeginInit(); ((ISupportInitialize)layoutControlItem4).BeginInit(); ((ISupportInitialize)layoutControlItem5).BeginInit(); ((ISupportInitialize)dxErrorProvider1).BeginInit(); + ((ISupportInitialize)layoutControlItem1).BeginInit(); SuspendLayout(); // // layoutControl1 // + layoutControl1.Controls.Add(generalOkAndCancelCtrl1); layoutControl1.Controls.Add(txtMaterial); layoutControl1.Controls.Add(txtMinorLoss); layoutControl1.Controls.Add(txtDiameter); layoutControl1.Controls.Add(imgCmbLinkStatus); - layoutControl1.Controls.Add(btnOk); - layoutControl1.Controls.Add(btnCancel); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(670, 266, 650, 400); layoutControl1.Root = Root; - layoutControl1.Size = new Size(463, 101); + layoutControl1.Size = new Size(457, 103); layoutControl1.TabIndex = 1; layoutControl1.Text = "layoutControl1"; // // txtMaterial // - txtMaterial.Location = new Point(297, 12); + txtMaterial.Location = new Point(294, 12); txtMaterial.Name = "txtMaterial"; - txtMaterial.Size = new Size(154, 20); + txtMaterial.Size = new Size(151, 20); txtMaterial.StyleController = layoutControl1; txtMaterial.TabIndex = 2; // // txtMinorLoss // - txtMinorLoss.Location = new Point(297, 36); + txtMinorLoss.Location = new Point(294, 36); txtMinorLoss.Name = "txtMinorLoss"; txtMinorLoss.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False; txtMinorLoss.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtMinorLoss.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False"); - txtMinorLoss.Size = new Size(154, 20); + txtMinorLoss.Size = new Size(151, 20); txtMinorLoss.StyleController = layoutControl1; txtMinorLoss.TabIndex = 4; // @@ -108,7 +102,7 @@ txtDiameter.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtDiameter.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False"); txtDiameter.Properties.NullValuePrompt = "mm"; - txtDiameter.Size = new Size(153, 20); + txtDiameter.Size = new Size(150, 20); txtDiameter.StyleController = layoutControl1; txtDiameter.TabIndex = 3; // @@ -117,33 +111,9 @@ imgCmbLinkStatus.Location = new Point(76, 12); imgCmbLinkStatus.Name = "imgCmbLinkStatus"; imgCmbLinkStatus.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); - imgCmbLinkStatus.Size = new Size(153, 20); + imgCmbLinkStatus.Size = new Size(150, 20); imgCmbLinkStatus.StyleController = layoutControl1; imgCmbLinkStatus.TabIndex = 0; - // - // btnOk - // - btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; - btnOk.Appearance.Options.UseBackColor = true; - btnOk.Location = new Point(277, 60); - btnOk.Name = "btnOk"; - btnOk.Size = new Size(85, 22); - btnOk.StyleController = layoutControl1; - btnOk.TabIndex = 5; - btnOk.Text = "纭畾"; - btnOk.Click += btnOk_Click; - // - // btnCancel - // - btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; - btnCancel.Appearance.Options.UseBackColor = true; - btnCancel.DialogResult = DialogResult.Cancel; - btnCancel.Location = new Point(366, 60); - btnCancel.Name = "btnCancel"; - btnCancel.Size = new Size(85, 22); - btnCancel.StyleController = layoutControl1; - btnCancel.TabIndex = 6; - btnCancel.Text = "鍙栨秷"; // // Root // @@ -151,58 +121,26 @@ Root.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; - Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem3, emptySpaceItem1, layoutControlItem10, layoutControlItem8, layoutControlItem4, layoutControlItem5 }); + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem10, layoutControlItem8, layoutControlItem4, layoutControlItem5, layoutControlItem1 }); Root.Name = "Root"; - Root.Size = new Size(463, 101); + Root.Size = new Size(457, 103); Root.TextVisible = false; - // - // layoutControlItem2 - // - layoutControlItem2.Control = btnCancel; - layoutControlItem2.Location = new Point(354, 48); - layoutControlItem2.MaxSize = new Size(89, 26); - layoutControlItem2.MinSize = new Size(89, 26); - layoutControlItem2.Name = "layoutControlItem2"; - layoutControlItem2.Size = new Size(89, 33); - layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; - layoutControlItem2.TextSize = new Size(0, 0); - layoutControlItem2.TextVisible = false; - // - // layoutControlItem3 - // - layoutControlItem3.Control = btnOk; - layoutControlItem3.Location = new Point(265, 48); - layoutControlItem3.MaxSize = new Size(89, 26); - layoutControlItem3.MinSize = new Size(89, 26); - layoutControlItem3.Name = "layoutControlItem3"; - layoutControlItem3.Size = new Size(89, 33); - layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; - layoutControlItem3.TextSize = new Size(0, 0); - layoutControlItem3.TextVisible = false; - // - // emptySpaceItem1 - // - emptySpaceItem1.AllowHotTrack = false; - emptySpaceItem1.Location = new Point(0, 48); - emptySpaceItem1.Name = "emptySpaceItem1"; - emptySpaceItem1.Size = new Size(265, 33); - emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem10 // layoutControlItem10.Control = imgCmbLinkStatus; layoutControlItem10.Location = new Point(0, 0); layoutControlItem10.Name = "layoutControlItem10"; - layoutControlItem10.Size = new Size(221, 24); + layoutControlItem10.Size = new Size(218, 24); layoutControlItem10.Text = "鐘舵��:"; layoutControlItem10.TextSize = new Size(52, 14); // // layoutControlItem8 // layoutControlItem8.Control = txtMaterial; - layoutControlItem8.Location = new Point(221, 0); + layoutControlItem8.Location = new Point(218, 0); layoutControlItem8.Name = "layoutControlItem8"; - layoutControlItem8.Size = new Size(222, 24); + layoutControlItem8.Size = new Size(219, 24); layoutControlItem8.Text = "鏉愯川:"; layoutControlItem8.TextSize = new Size(52, 14); // @@ -211,16 +149,16 @@ layoutControlItem4.Control = txtDiameter; layoutControlItem4.Location = new Point(0, 24); layoutControlItem4.Name = "layoutControlItem4"; - layoutControlItem4.Size = new Size(221, 24); + layoutControlItem4.Size = new Size(218, 24); layoutControlItem4.Text = "鐩村緞:"; layoutControlItem4.TextSize = new Size(52, 14); // // layoutControlItem5 // layoutControlItem5.Control = txtMinorLoss; - layoutControlItem5.Location = new Point(221, 24); + layoutControlItem5.Location = new Point(218, 24); layoutControlItem5.Name = "layoutControlItem5"; - layoutControlItem5.Size = new Size(222, 24); + layoutControlItem5.Size = new Size(219, 24); layoutControlItem5.Text = "灞�闃荤郴鏁�:"; layoutControlItem5.TextSize = new Size(52, 14); // @@ -228,14 +166,34 @@ // dxErrorProvider1.ContainerControl = this; // - // SetHydroValveDlg + // generalOkAndCancelCtrl1 + // + generalOkAndCancelCtrl1.ButtonCancelMaxSize = new Size(100, 26); + generalOkAndCancelCtrl1.ButtonCancelMinSize = new Size(100, 26); + generalOkAndCancelCtrl1.ButtonOkMaxSize = new Size(100, 26); + generalOkAndCancelCtrl1.ButtonOkMinSize = new Size(100, 26); + generalOkAndCancelCtrl1.Location = new Point(12, 60); + generalOkAndCancelCtrl1.Name = "generalOkAndCancelCtrl1"; + generalOkAndCancelCtrl1.Size = new Size(433, 31); + generalOkAndCancelCtrl1.TabIndex = 5; + // + // layoutControlItem1 + // + layoutControlItem1.Control = generalOkAndCancelCtrl1; + layoutControlItem1.Location = new Point(0, 48); + layoutControlItem1.Name = "layoutControlItem1"; + layoutControlItem1.Size = new Size(437, 35); + layoutControlItem1.TextSize = new Size(0, 0); + layoutControlItem1.TextVisible = false; + // + // SetHydroCompressorDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(463, 101); + ClientSize = new Size(457, 103); Controls.Add(layoutControl1); MaximizeBox = false; - Name = "SetHydroValveDlg"; + Name = "SetHydroCompressorDlg"; StartPosition = FormStartPosition.CenterParent; Text = "璁剧疆"; ((ISupportInitialize)layoutControl1).EndInit(); @@ -245,26 +203,19 @@ ((ISupportInitialize)txtDiameter.Properties).EndInit(); ((ISupportInitialize)imgCmbLinkStatus.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); - ((ISupportInitialize)layoutControlItem2).EndInit(); - ((ISupportInitialize)layoutControlItem3).EndInit(); - ((ISupportInitialize)emptySpaceItem1).EndInit(); ((ISupportInitialize)layoutControlItem10).EndInit(); ((ISupportInitialize)layoutControlItem8).EndInit(); ((ISupportInitialize)layoutControlItem4).EndInit(); ((ISupportInitialize)layoutControlItem5).EndInit(); ((ISupportInitialize)dxErrorProvider1).EndInit(); + ((ISupportInitialize)layoutControlItem1).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraLayout.LayoutControl layoutControl1; - private DevExpress.XtraEditors.SimpleButton btnOk; - private DevExpress.XtraEditors.SimpleButton btnCancel; private DevExpress.XtraLayout.LayoutControlGroup Root; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; - private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider dxErrorProvider1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; private DevExpress.XtraEditors.ImageComboBoxEdit imgCmbLinkStatus; @@ -274,5 +225,7 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private DevExpress.XtraEditors.TextEdit txtMaterial; + private GeneralOkAndCancelCtrl generalOkAndCancelCtrl1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; } } \ No newline at end of file -- Gitblit v1.9.3