From b4a3cd00731396b2a032e19c1ef968316f051709 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 08 十一月 2024 11:01:30 +0800 Subject: [PATCH] 计算优化 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/02-pump/SetHydroPumpWorkingInfoCtrl.Designer.cs | 57 +++++++++++++++++++++++++++++++-------------------------- 1 files changed, 31 insertions(+), 26 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-prefix/02-pump/SetHydroPumpCalcuPrefixCtrl.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/02-pump/SetHydroPumpWorkingInfoCtrl.Designer.cs similarity index 77% rename from WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-prefix/02-pump/SetHydroPumpCalcuPrefixCtrl.Designer.cs rename to WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/02-pump/SetHydroPumpWorkingInfoCtrl.Designer.cs index 83428fb..e03788d 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-prefix/02-pump/SetHydroPumpCalcuPrefixCtrl.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/02-pump/SetHydroPumpWorkingInfoCtrl.Designer.cs @@ -1,6 +1,6 @@ 锘縩amespace Yw.WinFrmUI { - partial class SetHydroPumpCalcuPrefixCtrl + partial class SetHydroPumpWorkingInfoCtrl { /// <summary> /// Required designer variable. @@ -29,10 +29,10 @@ private void InitializeComponent() { DevExpress.XtraEditors.ButtonsPanelControl.ButtonImageOptions buttonImageOptions1 = new DevExpress.XtraEditors.ButtonsPanelControl.ButtonImageOptions(); - ComponentResourceManager resources = new ComponentResourceManager(typeof(SetHydroPumpCalcuPrefixCtrl)); + ComponentResourceManager resources = new ComponentResourceManager(typeof(SetHydroPumpWorkingInfoCtrl)); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); txtCurrentHz = new DevExpress.XtraEditors.TextEdit(); - imgCmbPumpStatus = new DevExpress.XtraEditors.ImageComboBoxEdit(); + imgCmbLinkStatus = new DevExpress.XtraEditors.ImageComboBoxEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutGroupCaption = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -40,7 +40,7 @@ ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)txtCurrentHz.Properties).BeginInit(); - ((ISupportInitialize)imgCmbPumpStatus.Properties).BeginInit(); + ((ISupportInitialize)imgCmbLinkStatus.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)layoutGroupCaption).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); @@ -50,36 +50,37 @@ // layoutControl1 // layoutControl1.Controls.Add(txtCurrentHz); - layoutControl1.Controls.Add(imgCmbPumpStatus); + layoutControl1.Controls.Add(imgCmbLinkStatus); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.Root = Root; - layoutControl1.Size = new Size(332, 71); + layoutControl1.Size = new Size(191, 95); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // txtCurrentHz // - txtCurrentHz.Location = new Point(231, 37); + txtCurrentHz.Location = new Point(78, 61); txtCurrentHz.Name = "txtCurrentHz"; txtCurrentHz.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False; txtCurrentHz.Properties.DisplayFormat.FormatString = "{0}hz"; txtCurrentHz.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; txtCurrentHz.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtCurrentHz.Properties.NullValuePrompt = "hz"; - txtCurrentHz.Size = new Size(87, 20); + txtCurrentHz.Size = new Size(99, 20); txtCurrentHz.StyleController = layoutControl1; txtCurrentHz.TabIndex = 5; // - // imgCmbPumpStatus + // imgCmbLinkStatus // - imgCmbPumpStatus.Location = new Point(78, 37); - imgCmbPumpStatus.Name = "imgCmbPumpStatus"; - imgCmbPumpStatus.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); - imgCmbPumpStatus.Size = new Size(85, 20); - imgCmbPumpStatus.StyleController = layoutControl1; - imgCmbPumpStatus.TabIndex = 4; + imgCmbLinkStatus.Location = new Point(78, 37); + 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(99, 20); + imgCmbLinkStatus.StyleController = layoutControl1; + imgCmbLinkStatus.TabIndex = 4; + imgCmbLinkStatus.EditValueChanged += imgCmbLinkStatus_EditValueChanged; // // Root // @@ -88,7 +89,7 @@ Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutGroupCaption }); Root.Name = "Root"; Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - Root.Size = new Size(332, 71); + Root.Size = new Size(191, 95); Root.TextVisible = false; // // layoutGroupCaption @@ -102,40 +103,44 @@ layoutGroupCaption.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem2 }); layoutGroupCaption.Location = new Point(0, 0); layoutGroupCaption.Name = "layoutGroupCaption"; - layoutGroupCaption.Size = new Size(332, 71); + layoutGroupCaption.Size = new Size(191, 95); layoutGroupCaption.Text = "姘存车"; layoutGroupCaption.CustomButtonClick += layoutGroupCaption_CustomButtonClick; // // layoutControlItem1 // - layoutControlItem1.Control = imgCmbPumpStatus; + layoutControlItem1.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center; + layoutControlItem1.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center; + layoutControlItem1.Control = imgCmbLinkStatus; layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(153, 24); + layoutControlItem1.Size = new Size(167, 24); layoutControlItem1.Text = "杩愯鐘舵��:"; layoutControlItem1.TextSize = new Size(52, 14); // // layoutControlItem2 // + layoutControlItem2.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center; + layoutControlItem2.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem2.Control = txtCurrentHz; - layoutControlItem2.Location = new Point(153, 0); + layoutControlItem2.Location = new Point(0, 24); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 1; - layoutControlItem2.Size = new Size(155, 24); + layoutControlItem2.Size = new Size(167, 24); layoutControlItem2.Text = "璁惧畾棰戠巼:"; layoutControlItem2.TextSize = new Size(52, 14); // - // SetHydroPumpCalcuPrefixCtrl + // SetHydroPumpWorkingInfoCtrl // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); - Name = "SetHydroPumpCalcuPrefixCtrl"; - Size = new Size(332, 71); + Name = "SetHydroPumpWorkingInfoCtrl"; + Size = new Size(191, 95); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)txtCurrentHz.Properties).EndInit(); - ((ISupportInitialize)imgCmbPumpStatus.Properties).EndInit(); + ((ISupportInitialize)imgCmbLinkStatus.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)layoutGroupCaption).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); @@ -147,7 +152,7 @@ private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraEditors.TextEdit txtCurrentHz; - private DevExpress.XtraEditors.ImageComboBoxEdit imgCmbPumpStatus; + private DevExpress.XtraEditors.ImageComboBoxEdit imgCmbLinkStatus; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; -- Gitblit v1.9.3