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/13-pressmeter/SetHydroPressmeterDlg.Designer.cs | 123 ++++++++++++---------------------------- 1 files changed, 38 insertions(+), 85 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/SetHydroPressmeterDlg.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/13-pressmeter/SetHydroPressmeterDlg.Designer.cs similarity index 73% rename from WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/SetHydroPressmeterDlg.Designer.cs rename to WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/13-pressmeter/SetHydroPressmeterDlg.Designer.cs index ff3156f..7dfebab 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/SetHydroPressmeterDlg.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/13-pressmeter/SetHydroPressmeterDlg.Designer.cs @@ -33,46 +33,40 @@ txtCurrentPress = 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(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); + dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); + generalOkAndCancelCtrl1 = new GeneralOkAndCancelCtrl(); + layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)txtCurrentPress.Properties).BeginInit(); ((ISupportInitialize)txtMinorLoss.Properties).BeginInit(); ((ISupportInitialize)txtElev.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); - ((ISupportInitialize)layoutControlItem2).BeginInit(); - ((ISupportInitialize)layoutControlItem3).BeginInit(); - ((ISupportInitialize)emptySpaceItem1).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); ((ISupportInitialize)layoutControlItem4).BeginInit(); ((ISupportInitialize)layoutControlItem9).BeginInit(); - ((ISupportInitialize)dxErrorProvider1).BeginInit(); ((ISupportInitialize)emptySpaceItem2).BeginInit(); + ((ISupportInitialize)dxErrorProvider1).BeginInit(); + ((ISupportInitialize)layoutControlItem2).BeginInit(); SuspendLayout(); // // layoutControl1 // + layoutControl1.Controls.Add(generalOkAndCancelCtrl1); layoutControl1.Controls.Add(txtCurrentPress); 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(449, 100); + layoutControl1.Size = new Size(449, 101); layoutControl1.TabIndex = 1; layoutControl1.Text = "layoutControl1"; // @@ -113,72 +107,16 @@ txtElev.StyleController = layoutControl1; txtElev.TabIndex = 0; // - // btnOk - // - btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; - btnOk.Appearance.Options.UseBackColor = true; - btnOk.Location = new Point(263, 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(352, 60); - btnCancel.Name = "btnCancel"; - btnCancel.Size = new Size(85, 22); - btnCancel.StyleController = layoutControl1; - btnCancel.TabIndex = 6; - btnCancel.Text = "鍙栨秷"; - // // Root // Root.AppearanceItemCaption.Options.UseTextOptions = true; 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, layoutControlItem4, layoutControlItem9, emptySpaceItem2 }); + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem4, layoutControlItem9, emptySpaceItem2, layoutControlItem2 }); Root.Name = "Root"; - Root.Size = new Size(449, 100); + Root.Size = new Size(449, 101); Root.TextVisible = false; - // - // layoutControlItem2 - // - layoutControlItem2.Control = btnCancel; - layoutControlItem2.Location = new Point(340, 48); - layoutControlItem2.MaxSize = new Size(89, 26); - layoutControlItem2.MinSize = new Size(89, 26); - layoutControlItem2.Name = "layoutControlItem2"; - layoutControlItem2.Size = new Size(89, 32); - layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; - layoutControlItem2.TextSize = new Size(0, 0); - layoutControlItem2.TextVisible = false; - // - // layoutControlItem3 - // - layoutControlItem3.Control = btnOk; - layoutControlItem3.Location = new Point(251, 48); - layoutControlItem3.MaxSize = new Size(89, 26); - layoutControlItem3.MinSize = new Size(89, 26); - layoutControlItem3.Name = "layoutControlItem3"; - layoutControlItem3.Size = new Size(89, 32); - 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(251, 32); - emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem1 // @@ -207,10 +145,6 @@ layoutControlItem9.Text = "鍘嬪姏:"; layoutControlItem9.TextSize = new Size(52, 14); // - // dxErrorProvider1 - // - dxErrorProvider1.ContainerControl = this; - // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; @@ -219,11 +153,35 @@ emptySpaceItem2.Size = new Size(215, 24); emptySpaceItem2.TextSize = new Size(0, 0); // + // 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(425, 29); + generalOkAndCancelCtrl1.TabIndex = 5; + // + // layoutControlItem2 + // + layoutControlItem2.Control = generalOkAndCancelCtrl1; + layoutControlItem2.Location = new Point(0, 48); + layoutControlItem2.Name = "layoutControlItem2"; + layoutControlItem2.Size = new Size(429, 33); + layoutControlItem2.TextSize = new Size(0, 0); + layoutControlItem2.TextVisible = false; + // // SetHydroPressmeterDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(449, 100); + ClientSize = new Size(449, 101); Controls.Add(layoutControl1); MaximizeBox = false; Name = "SetHydroPressmeterDlg"; @@ -235,14 +193,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)layoutControlItem4).EndInit(); ((ISupportInitialize)layoutControlItem9).EndInit(); - ((ISupportInitialize)dxErrorProvider1).EndInit(); ((ISupportInitialize)emptySpaceItem2).EndInit(); + ((ISupportInitialize)dxErrorProvider1).EndInit(); + ((ISupportInitialize)layoutControlItem2).EndInit(); ResumeLayout(false); } @@ -250,12 +206,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 txtMinorLoss; @@ -266,5 +217,7 @@ private DevExpress.XtraEditors.TextEdit txtCurrentPress; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; + private GeneralOkAndCancelCtrl generalOkAndCancelCtrl1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; } } \ No newline at end of file -- Gitblit v1.9.3