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/10-nozzle/SetHydroNozzleDlg.Designer.cs | 153 +++++++++++++++++--------------------------------- 1 files changed, 53 insertions(+), 100 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/10-nozzle/SetHydroNozzleDlg.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/10-nozzle/SetHydroNozzleDlg.Designer.cs similarity index 70% rename from WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/10-nozzle/SetHydroNozzleDlg.Designer.cs rename to WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/10-nozzle/SetHydroNozzleDlg.Designer.cs index 79ceb2c..287c30d 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/10-nozzle/SetHydroNozzleDlg.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/10-nozzle/SetHydroNozzleDlg.Designer.cs @@ -34,17 +34,14 @@ txtDemand = new DevExpress.XtraEditors.TextEdit(); txtMinorLoss = new DevExpress.XtraEditors.TextEdit(); txtElev = new DevExpress.XtraEditors.TextEdit(); - 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(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); + generalOkAndCancelCtrl1 = new GeneralOkAndCancelCtrl(); + layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)txtCoefficient.Properties).BeginInit(); @@ -52,30 +49,27 @@ ((ISupportInitialize)txtMinorLoss.Properties).BeginInit(); ((ISupportInitialize)txtElev.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); - ((ISupportInitialize)layoutControlItem2).BeginInit(); - ((ISupportInitialize)layoutControlItem3).BeginInit(); - ((ISupportInitialize)emptySpaceItem1).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); + ((ISupportInitialize)layoutControlItem5).BeginInit(); ((ISupportInitialize)layoutControlItem4).BeginInit(); ((ISupportInitialize)layoutControlItem9).BeginInit(); - ((ISupportInitialize)layoutControlItem5).BeginInit(); ((ISupportInitialize)dxErrorProvider1).BeginInit(); + ((ISupportInitialize)layoutControlItem2).BeginInit(); SuspendLayout(); // // layoutControl1 // + layoutControl1.Controls.Add(generalOkAndCancelCtrl1); layoutControl1.Controls.Add(txtCoefficient); layoutControl1.Controls.Add(txtDemand); layoutControl1.Controls.Add(txtMinorLoss); layoutControl1.Controls.Add(txtElev); - 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(400, 105); + layoutControl1.Size = new Size(412, 100); layoutControl1.TabIndex = 1; layoutControl1.Text = "layoutControl1"; // @@ -86,30 +80,30 @@ txtCoefficient.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True; txtCoefficient.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtCoefficient.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False"); - txtCoefficient.Size = new Size(122, 20); + txtCoefficient.Size = new Size(128, 20); txtCoefficient.StyleController = layoutControl1; txtCoefficient.TabIndex = 3; // // txtDemand // - txtDemand.Location = new Point(266, 36); + txtDemand.Location = new Point(272, 36); txtDemand.Name = "txtDemand"; txtDemand.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True; txtDemand.Properties.DisplayFormat.FormatString = "{0}m鲁/h"; txtDemand.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; txtDemand.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtDemand.Properties.NullValuePrompt = "m鲁/h"; - txtDemand.Size = new Size(122, 20); + txtDemand.Size = new Size(128, 20); txtDemand.StyleController = layoutControl1; txtDemand.TabIndex = 4; // // txtMinorLoss // - txtMinorLoss.Location = new Point(266, 12); + txtMinorLoss.Location = new Point(272, 12); txtMinorLoss.Name = "txtMinorLoss"; txtMinorLoss.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True; txtMinorLoss.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); - txtMinorLoss.Size = new Size(122, 20); + txtMinorLoss.Size = new Size(128, 20); txtMinorLoss.StyleController = layoutControl1; txtMinorLoss.TabIndex = 2; // @@ -122,33 +116,9 @@ txtElev.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; txtElev.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager)); txtElev.Properties.NullValuePrompt = "m"; - txtElev.Size = new Size(122, 20); + txtElev.Size = new Size(128, 20); txtElev.StyleController = layoutControl1; txtElev.TabIndex = 0; - // - // btnOk - // - btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; - btnOk.Appearance.Options.UseBackColor = true; - btnOk.Location = new Point(214, 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(303, 60); - btnCancel.Name = "btnCancel"; - btnCancel.Size = new Size(85, 22); - btnCancel.StyleController = layoutControl1; - btnCancel.TabIndex = 6; - btnCancel.Text = "鍙栨秷"; // // Root // @@ -156,58 +126,35 @@ 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, layoutControlItem1, layoutControlItem5, layoutControlItem4, layoutControlItem9 }); + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem5, layoutControlItem4, layoutControlItem9, layoutControlItem2 }); Root.Name = "Root"; - Root.Size = new Size(400, 105); + Root.Size = new Size(412, 100); Root.TextVisible = false; - // - // layoutControlItem2 - // - layoutControlItem2.Control = btnCancel; - layoutControlItem2.Location = new Point(291, 48); - layoutControlItem2.MaxSize = new Size(89, 26); - layoutControlItem2.MinSize = new Size(89, 26); - layoutControlItem2.Name = "layoutControlItem2"; - layoutControlItem2.Size = new Size(89, 37); - layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; - layoutControlItem2.TextSize = new Size(0, 0); - layoutControlItem2.TextVisible = false; - // - // layoutControlItem3 - // - layoutControlItem3.Control = btnOk; - layoutControlItem3.Location = new Point(202, 48); - layoutControlItem3.MaxSize = new Size(89, 26); - layoutControlItem3.MinSize = new Size(89, 26); - layoutControlItem3.Name = "layoutControlItem3"; - layoutControlItem3.Size = new Size(89, 37); - 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(202, 37); - emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem1 // layoutControlItem1.Control = txtElev; layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(190, 24); + layoutControlItem1.Size = new Size(196, 24); layoutControlItem1.Text = "鏍囬珮:"; layoutControlItem1.TextSize = new Size(52, 14); + // + // layoutControlItem5 + // + layoutControlItem5.Control = txtDemand; + layoutControlItem5.Location = new Point(196, 24); + layoutControlItem5.Name = "layoutControlItem5"; + layoutControlItem5.Size = new Size(196, 24); + layoutControlItem5.Text = "闇�姘撮噺:"; + layoutControlItem5.TextSize = new Size(52, 14); // // layoutControlItem4 // layoutControlItem4.Control = txtMinorLoss; - layoutControlItem4.Location = new Point(190, 0); + layoutControlItem4.Location = new Point(196, 0); layoutControlItem4.Name = "layoutControlItem4"; - layoutControlItem4.Size = new Size(190, 24); + layoutControlItem4.Size = new Size(196, 24); layoutControlItem4.Text = "灞�闃荤郴鏁�:"; layoutControlItem4.TextSize = new Size(52, 14); // @@ -216,28 +163,39 @@ layoutControlItem9.Control = txtCoefficient; layoutControlItem9.Location = new Point(0, 24); layoutControlItem9.Name = "layoutControlItem9"; - layoutControlItem9.Size = new Size(190, 24); + layoutControlItem9.Size = new Size(196, 24); layoutControlItem9.Text = "鍠峰皠绯绘暟:"; layoutControlItem9.TextSize = new Size(52, 14); - // - // layoutControlItem5 - // - layoutControlItem5.Control = txtDemand; - layoutControlItem5.Location = new Point(190, 24); - layoutControlItem5.Name = "layoutControlItem5"; - layoutControlItem5.Size = new Size(190, 24); - layoutControlItem5.Text = "闇�姘撮噺:"; - layoutControlItem5.TextSize = new Size(52, 14); // // dxErrorProvider1 // dxErrorProvider1.ContainerControl = this; // + // 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(388, 28); + generalOkAndCancelCtrl1.TabIndex = 5; + // + // layoutControlItem2 + // + layoutControlItem2.Control = generalOkAndCancelCtrl1; + layoutControlItem2.Location = new Point(0, 48); + layoutControlItem2.Name = "layoutControlItem2"; + layoutControlItem2.Size = new Size(392, 32); + layoutControlItem2.TextSize = new Size(0, 0); + layoutControlItem2.TextVisible = false; + // // SetHydroNozzleDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(400, 105); + ClientSize = new Size(412, 100); Controls.Add(layoutControl1); MaximizeBox = false; Name = "SetHydroNozzleDlg"; @@ -250,14 +208,12 @@ ((ISupportInitialize)txtMinorLoss.Properties).EndInit(); ((ISupportInitialize)txtElev.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); - ((ISupportInitialize)layoutControlItem2).EndInit(); - ((ISupportInitialize)layoutControlItem3).EndInit(); - ((ISupportInitialize)emptySpaceItem1).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); + ((ISupportInitialize)layoutControlItem5).EndInit(); ((ISupportInitialize)layoutControlItem4).EndInit(); ((ISupportInitialize)layoutControlItem9).EndInit(); - ((ISupportInitialize)layoutControlItem5).EndInit(); ((ISupportInitialize)dxErrorProvider1).EndInit(); + ((ISupportInitialize)layoutControlItem2).EndInit(); ResumeLayout(false); } @@ -265,12 +221,7 @@ private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraEditors.TextEdit txtElev; - 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.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider dxErrorProvider1; private DevExpress.XtraEditors.TextEdit txtDemand; @@ -282,5 +233,7 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; private DevExpress.XtraEditors.TextEdit txtCoefficient; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private GeneralOkAndCancelCtrl generalOkAndCancelCtrl1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; } } \ No newline at end of file -- Gitblit v1.9.3