From 764f83e55da4a23d9f042586aa92e292a6f429b6 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期五, 15 十一月 2024 11:55:44 +0800 Subject: [PATCH] code --- WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpParallelInfoCtrl.Designer.cs | 194 +++++++++++++++++++++++++++--------------------- 1 files changed, 109 insertions(+), 85 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpParallelInfoCtrl.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpParallelInfoCtrl.Designer.cs index 21295d4..c32b35c 100644 --- a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpParallelInfoCtrl.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpParallelInfoCtrl.Designer.cs @@ -65,6 +65,8 @@ txtDesignQ = new DevExpress.XtraEditors.TextEdit(); txtDesignH = new DevExpress.XtraEditors.TextEdit(); btnSetDesignPoint = new DevExpress.XtraEditors.SimpleButton(); + btnSave = new DevExpress.XtraEditors.SimpleButton(); + btnReset = new DevExpress.XtraEditors.SimpleButton(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -74,11 +76,9 @@ layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); - simpleLabelItem2 = new DevExpress.XtraLayout.SimpleLabelItem(); - btnSave = new DevExpress.XtraEditors.SimpleButton(); + layoutControlGroup5 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup(); + layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)gridControl2).BeginInit(); @@ -98,10 +98,9 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); - ((System.ComponentModel.ISupportInitialize)simpleLabelItem1).BeginInit(); - ((System.ComponentModel.ISupportInitialize)simpleLabelItem2).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); SuspendLayout(); // // layoutControl1 @@ -112,23 +111,24 @@ layoutControl1.Controls.Add(txtDesignH); layoutControl1.Controls.Add(btnSetDesignPoint); layoutControl1.Controls.Add(btnSave); + layoutControl1.Controls.Add(btnReset); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1033, 536, 975, 600); layoutControl1.Root = Root; - layoutControl1.Size = new Size(560, 891); + layoutControl1.Size = new Size(694, 891); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // gridControl2 // gridControl2.DataSource = pumpSerialParallelInfoViewModelBindingSource; - gridControl2.Location = new Point(0, 572); + gridControl2.Location = new Point(0, 627); gridControl2.MainView = gridView2; gridControl2.Name = "gridControl2"; - gridControl2.Size = new Size(560, 271); - gridControl2.TabIndex = 5; + gridControl2.Size = new Size(694, 264); + gridControl2.TabIndex = 7; gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView2 }); // // pumpSerialParallelInfoViewModelBindingSource @@ -205,8 +205,8 @@ gridControl1.MainView = gridView1; gridControl1.Name = "gridControl1"; gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repColor }); - gridControl1.Size = new Size(560, 417); - gridControl1.TabIndex = 4; + gridControl1.Size = new Size(694, 472); + gridControl1.TabIndex = 6; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // // gridView1 @@ -384,7 +384,7 @@ // // txtDesignQ // - txtDesignQ.Location = new Point(66, 45); + txtDesignQ.Location = new Point(114, 45); txtDesignQ.Name = "txtDesignQ"; txtDesignQ.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtDesignQ.Size = new Size(75, 28); @@ -393,12 +393,12 @@ // // txtDesignH // - txtDesignH.Location = new Point(245, 45); + txtDesignH.Location = new Point(269, 45); txtDesignH.Name = "txtDesignH"; txtDesignH.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtDesignH.Size = new Size(75, 28); txtDesignH.StyleController = layoutControl1; - txtDesignH.TabIndex = 3; + txtDesignH.TabIndex = 2; // // btnSetDesignPoint // @@ -406,34 +406,69 @@ btnSetDesignPoint.Appearance.Options.UseBackColor = true; btnSetDesignPoint.Appearance.Options.UseTextOptions = true; btnSetDesignPoint.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; + btnSetDesignPoint.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; btnSetDesignPoint.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnSetDesignPoint.ImageOptions.SvgImage"); - btnSetDesignPoint.ImageOptions.SvgImageSize = new Size(20, 20); - btnSetDesignPoint.Location = new Point(370, 45); + btnSetDesignPoint.ImageOptions.SvgImageSize = new Size(18, 18); + btnSetDesignPoint.Location = new Point(348, 45); btnSetDesignPoint.Name = "btnSetDesignPoint"; - btnSetDesignPoint.Size = new Size(178, 32); + btnSetDesignPoint.Size = new Size(75, 32); btnSetDesignPoint.StyleController = layoutControl1; - btnSetDesignPoint.TabIndex = 2; + btnSetDesignPoint.TabIndex = 3; btnSetDesignPoint.Text = "璁剧疆"; btnSetDesignPoint.Click += btnSetDesignPoint_Click; + // + // btnSave + // + btnSave.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Question; + btnSave.Appearance.ForeColor = Color.White; + btnSave.Appearance.Options.UseBackColor = true; + btnSave.Appearance.Options.UseForeColor = true; + btnSave.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; + btnSave.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnSave.ImageOptions.SvgImage"); + btnSave.ImageOptions.SvgImageSize = new Size(18, 18); + btnSave.Location = new Point(566, 45); + btnSave.Name = "btnSave"; + btnSave.Size = new Size(116, 32); + btnSave.StyleController = layoutControl1; + btnSave.TabIndex = 5; + btnSave.Text = "淇濆瓨"; + btnSave.Click += btnSave_Click; + // + // btnReset + // + btnReset.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; + btnReset.Appearance.ForeColor = Color.White; + btnReset.Appearance.Options.UseBackColor = true; + btnReset.Appearance.Options.UseForeColor = true; + btnReset.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; + btnReset.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnReset.ImageOptions.SvgImage"); + btnReset.ImageOptions.SvgImageSize = new Size(18, 18); + btnReset.Location = new Point(447, 45); + btnReset.Name = "btnReset"; + btnReset.Size = new Size(115, 32); + btnReset.StyleController = layoutControl1; + btnReset.TabIndex = 4; + btnReset.Text = "閲嶇疆"; + btnReset.Click += btnReset_Click; // // Root // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; - Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlGroup3, layoutControlGroup1, layoutControlGroup2, layoutControlGroup4 }); + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlGroup3, layoutControlGroup1, layoutControlGroup2, layoutControlGroup5 }); Root.Name = "Root"; Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - Root.Size = new Size(560, 891); + Root.Size = new Size(694, 891); Root.TextVisible = false; // // layoutControlGroup3 // layoutControlGroup3.GroupStyle = DevExpress.Utils.GroupStyle.Title; layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem5 }); - layoutControlGroup3.Location = new Point(0, 539); + layoutControlGroup3.Location = new Point(0, 594); layoutControlGroup3.Name = "layoutControlGroup3"; layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlGroup3.Size = new Size(560, 304); + layoutControlGroup3.Size = new Size(694, 297); layoutControlGroup3.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlGroup3.Text = "鏌ヨ鐐�"; // @@ -443,7 +478,7 @@ layoutControlItem5.Location = new Point(0, 0); layoutControlItem5.Name = "layoutControlItem5"; layoutControlItem5.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlItem5.Size = new Size(560, 271); + layoutControlItem5.Size = new Size(694, 264); layoutControlItem5.TextSize = new Size(0, 0); layoutControlItem5.TextVisible = false; // @@ -454,7 +489,7 @@ layoutControlGroup1.Location = new Point(0, 89); layoutControlGroup1.Name = "layoutControlGroup1"; layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlGroup1.Size = new Size(560, 450); + layoutControlGroup1.Size = new Size(694, 505); layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlGroup1.Text = "鏇茬嚎鍒楄〃"; // @@ -464,7 +499,7 @@ layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlItem1.Size = new Size(560, 417); + layoutControlItem1.Size = new Size(694, 472); layoutControlItem1.Text = "鏇茬嚎鍒楄〃"; layoutControlItem1.TextSize = new Size(0, 0); layoutControlItem1.TextVisible = false; @@ -472,10 +507,10 @@ // layoutControlGroup2 // layoutControlGroup2.GroupStyle = DevExpress.Utils.GroupStyle.Title; - layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem4, layoutControlItem3, simpleLabelItem1, simpleLabelItem2 }); + layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem4, layoutControlItem3 }); layoutControlGroup2.Location = new Point(0, 0); layoutControlGroup2.Name = "layoutControlGroup2"; - layoutControlGroup2.Size = new Size(560, 89); + layoutControlGroup2.Size = new Size(435, 89); layoutControlGroup2.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlGroup2.Text = "璁捐鐐�"; // @@ -484,17 +519,22 @@ layoutControlItem2.Control = txtDesignQ; layoutControlItem2.Location = new Point(0, 0); layoutControlItem2.Name = "layoutControlItem2"; - layoutControlItem2.Size = new Size(133, 36); - layoutControlItem2.Text = "娴侀噺:"; - layoutControlItem2.TextSize = new Size(42, 22); + layoutControlItem2.Size = new Size(181, 36); + layoutControlItem2.Text = "娴侀噺(m鲁/h):"; + layoutControlItem2.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; + layoutControlItem2.TextSize = new Size(97, 22); + layoutControlItem2.TextToControlDistance = 5; // // layoutControlItem4 // + layoutControlItem4.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center; + layoutControlItem4.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem4.Control = btnSetDesignPoint; - layoutControlItem4.Location = new Point(358, 0); - layoutControlItem4.MinSize = new Size(126, 36); + layoutControlItem4.Location = new Point(336, 0); + layoutControlItem4.MaxSize = new Size(0, 36); + layoutControlItem4.MinSize = new Size(79, 36); layoutControlItem4.Name = "layoutControlItem4"; - layoutControlItem4.Size = new Size(182, 36); + layoutControlItem4.Size = new Size(79, 36); layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem4.TextSize = new Size(0, 0); layoutControlItem4.TextVisible = false; @@ -502,61 +542,46 @@ // layoutControlItem3 // layoutControlItem3.Control = txtDesignH; - layoutControlItem3.Location = new Point(179, 0); + layoutControlItem3.Location = new Point(181, 0); layoutControlItem3.Name = "layoutControlItem3"; - layoutControlItem3.Size = new Size(133, 36); - layoutControlItem3.Text = "鎵▼:"; - layoutControlItem3.TextSize = new Size(42, 22); + layoutControlItem3.Size = new Size(155, 36); + layoutControlItem3.Text = "鎵▼(m):"; + layoutControlItem3.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; + layoutControlItem3.TextSize = new Size(71, 22); + layoutControlItem3.TextToControlDistance = 5; // - // simpleLabelItem1 + // layoutControlGroup5 // - simpleLabelItem1.AllowHotTrack = false; - simpleLabelItem1.Location = new Point(133, 0); - simpleLabelItem1.Name = "simpleLabelItem1"; - simpleLabelItem1.Size = new Size(46, 36); - simpleLabelItem1.Text = "m鲁/h"; - simpleLabelItem1.TextSize = new Size(42, 22); - // - // simpleLabelItem2 - // - simpleLabelItem2.AllowHotTrack = false; - simpleLabelItem2.Location = new Point(312, 0); - simpleLabelItem2.Name = "simpleLabelItem2"; - simpleLabelItem2.Size = new Size(46, 36); - simpleLabelItem2.Text = "m"; - simpleLabelItem2.TextSize = new Size(42, 22); - // - // btnSave - // - btnSave.Location = new Point(203, 851); - btnSave.Name = "btnSave"; - btnSave.Size = new Size(154, 32); - btnSave.StyleController = layoutControl1; - btnSave.TabIndex = 6; - btnSave.Text = "淇濆瓨"; - btnSave.Click += btnSave_Click; + layoutControlGroup5.GroupStyle = DevExpress.Utils.GroupStyle.Title; + layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem6, layoutControlItem7 }); + layoutControlGroup5.Location = new Point(435, 0); + layoutControlGroup5.Name = "layoutControlGroup5"; + layoutControlGroup5.Size = new Size(259, 89); + layoutControlGroup5.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); + layoutControlGroup5.Text = "鎿嶄綔"; // // layoutControlItem6 // + layoutControlItem6.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center; + layoutControlItem6.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem6.Control = btnSave; - layoutControlItem6.Location = new Point(0, 0); + layoutControlItem6.Location = new Point(119, 0); layoutControlItem6.Name = "layoutControlItem6"; - layoutControlItem6.Size = new Size(158, 36); + layoutControlItem6.Size = new Size(120, 36); layoutControlItem6.TextSize = new Size(0, 0); layoutControlItem6.TextVisible = false; // - // layoutControlGroup4 + // layoutControlItem7 // - layoutControlGroup4.GroupStyle = DevExpress.Utils.GroupStyle.Title; - layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem6 }); - layoutControlGroup4.Location = new Point(0, 843); - layoutControlGroup4.Name = "layoutControlGroup4"; - layoutControlGroup4.Padding = new DevExpress.XtraLayout.Utils.Padding(200, 200, 5, 5); - layoutControlGroup4.Size = new Size(560, 48); - layoutControlGroup4.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutControlGroup4.Text = "鎿嶄綔"; - layoutControlGroup4.TextLocation = DevExpress.Utils.Locations.Default; - layoutControlGroup4.TextVisible = false; + layoutControlItem7.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center; + layoutControlItem7.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center; + layoutControlItem7.Control = btnReset; + layoutControlItem7.Location = new Point(0, 0); + layoutControlItem7.Name = "layoutControlItem7"; + layoutControlItem7.Size = new Size(119, 36); + layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.SupportHorzAlignment; + layoutControlItem7.TextSize = new Size(0, 0); + layoutControlItem7.TextVisible = false; // // PumpParallelInfoCtrl // @@ -564,7 +589,7 @@ AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); Name = "PumpParallelInfoCtrl"; - Size = new Size(560, 891); + Size = new Size(694, 891); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)gridControl2).EndInit(); @@ -584,10 +609,9 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); - ((System.ComponentModel.ISupportInitialize)simpleLabelItem1).EndInit(); - ((System.ComponentModel.ISupportInitialize)simpleLabelItem2).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlGroup5).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlGroup4).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); ResumeLayout(false); } @@ -624,8 +648,6 @@ private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; - private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem1; - private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem2; private DevExpress.XtraEditors.SimpleButton btnSetDesignPoint; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraGrid.Columns.GridColumn colRunStatus; @@ -640,7 +662,9 @@ private DevExpress.XtraGrid.Columns.GridColumn colQueryP1; private DevExpress.XtraGrid.Columns.GridColumn colName1; private DevExpress.XtraEditors.SimpleButton btnSave; - private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup4; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup5; + private DevExpress.XtraEditors.SimpleButton btnReset; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; } } -- Gitblit v1.9.3