From ca1ccd0dd9f2d6936368f07d14a2b29b309fd151 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 04 十二月 2024 15:59:25 +0800 Subject: [PATCH] 增加单独匹配界面 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/EditThreeLinkMainDlg.Designer.cs | 249 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 176 insertions(+), 73 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/EditThreeLinkMainDlg.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/EditThreeLinkMainDlg.Designer.cs index aa42efc..42b6650 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/EditThreeLinkMainDlg.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/EditThreeLinkMainDlg.Designer.cs @@ -30,14 +30,25 @@ { components = new System.ComponentModel.Container(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + popupContainerControl1 = new DevExpress.XtraEditors.PopupContainerControl(); + treeList1 = new DevExpress.XtraTreeList.TreeList(); + colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colCaliber = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colMaterial = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colMinorLoss = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colRunThroughMinorLoss = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colBranchThroughMinorLoss = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + threelinkCoefficientViewModelBindingSource = new BindingSource(components); + textEditBranchThroughCoefficient = new DevExpress.XtraEditors.TextEdit(); + textEditRunThroughCoefficient = new DevExpress.XtraEditors.TextEdit(); BtnOk = new DevExpress.XtraEditors.SimpleButton(); simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); TextEditName = new DevExpress.XtraEditors.TextEdit(); DescriptionTextEdit = new DevExpress.XtraEditors.MemoEdit(); TextEditCaliber = new DevExpress.XtraEditors.ImageComboBoxEdit(); TextEditMaterial = new DevExpress.XtraEditors.ImageComboBoxEdit(); - TextEditCoefficient = new DevExpress.XtraEditors.TextEdit(); - TextEditKeyWorld = new DevExpress.XtraEditors.TextEdit(); + TextEditKeyWord = new DevExpress.XtraEditors.TextEdit(); + TextEditMinorLoss = new DevExpress.XtraEditors.PopupContainerEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); @@ -49,6 +60,8 @@ layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); imageComboBoxEdit1 = new DevExpress.XtraEditors.ImageComboBoxEdit(); @@ -61,18 +74,20 @@ toolTipController1 = new DevExpress.Utils.ToolTipController(components); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - textEditBranchThroughCoefficient = new DevExpress.XtraEditors.TextEdit(); - textEditRunThroughCoefficient = new DevExpress.XtraEditors.TextEdit(); - layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); - layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)popupContainerControl1).BeginInit(); + popupContainerControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)threelinkCoefficientViewModelBindingSource).BeginInit(); + ((System.ComponentModel.ISupportInitialize)textEditBranchThroughCoefficient.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)textEditRunThroughCoefficient.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)TextEditName.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)TextEditCaliber.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)TextEditMaterial.Properties).BeginInit(); - ((System.ComponentModel.ISupportInitialize)TextEditCoefficient.Properties).BeginInit(); - ((System.ComponentModel.ISupportInitialize)TextEditKeyWorld.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)TextEditKeyWord.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)TextEditMinorLoss.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); @@ -84,6 +99,8 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem12).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem10).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem11).BeginInit(); ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem13).BeginInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); @@ -95,14 +112,11 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem27).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); - ((System.ComponentModel.ISupportInitialize)textEditBranchThroughCoefficient.Properties).BeginInit(); - ((System.ComponentModel.ISupportInitialize)textEditRunThroughCoefficient.Properties).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem10).BeginInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem11).BeginInit(); SuspendLayout(); // // layoutControl1 // + layoutControl1.Controls.Add(popupContainerControl1); layoutControl1.Controls.Add(textEditBranchThroughCoefficient); layoutControl1.Controls.Add(textEditRunThroughCoefficient); layoutControl1.Controls.Add(BtnOk); @@ -111,8 +125,8 @@ layoutControl1.Controls.Add(DescriptionTextEdit); layoutControl1.Controls.Add(TextEditCaliber); layoutControl1.Controls.Add(TextEditMaterial); - layoutControl1.Controls.Add(TextEditCoefficient); - layoutControl1.Controls.Add(TextEditKeyWorld); + layoutControl1.Controls.Add(TextEditKeyWord); + layoutControl1.Controls.Add(TextEditMinorLoss); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; @@ -121,6 +135,93 @@ layoutControl1.Size = new Size(681, 482); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; + // + // popupContainerControl1 + // + popupContainerControl1.Controls.Add(treeList1); + popupContainerControl1.Location = new Point(46, 156); + popupContainerControl1.Name = "popupContainerControl1"; + popupContainerControl1.Size = new Size(215, 124); + popupContainerControl1.TabIndex = 13; + // + // treeList1 + // + treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colCaliber, colMaterial, colMinorLoss, colRunThroughMinorLoss, colBranchThroughMinorLoss }); + treeList1.DataSource = threelinkCoefficientViewModelBindingSource; + treeList1.Dock = DockStyle.Fill; + treeList1.Location = new Point(0, 0); + treeList1.Name = "treeList1"; + treeList1.Size = new Size(215, 124); + treeList1.TabIndex = 0; + treeList1.FocusedNodeChanged += treeList1_FocusedNodeChanged; + // + // colName + // + colName.Caption = "鍚嶇О"; + colName.FieldName = "Name"; + colName.Name = "colName"; + colName.Visible = true; + colName.VisibleIndex = 0; + // + // colCaliber + // + colCaliber.Caption = "鍙e緞"; + colCaliber.FieldName = "Caliber"; + colCaliber.Name = "colCaliber"; + colCaliber.Visible = true; + colCaliber.VisibleIndex = 1; + // + // colMaterial + // + colMaterial.Caption = "鏉愭枡"; + colMaterial.FieldName = "Material"; + colMaterial.Name = "colMaterial"; + colMaterial.Visible = true; + colMaterial.VisibleIndex = 2; + // + // colMinorLoss + // + colMinorLoss.Caption = "灞�闃荤郴鏁�"; + colMinorLoss.FieldName = "MinorLoss"; + colMinorLoss.Name = "colMinorLoss"; + colMinorLoss.Visible = true; + colMinorLoss.VisibleIndex = 3; + // + // colRunThroughMinorLoss + // + colRunThroughMinorLoss.Caption = "杩愯閫氳繃鎹熷け绯绘暟"; + colRunThroughMinorLoss.FieldName = "RunThroughMinorLoss"; + colRunThroughMinorLoss.Name = "colRunThroughMinorLoss"; + colRunThroughMinorLoss.Visible = true; + colRunThroughMinorLoss.VisibleIndex = 4; + // + // colBranchThroughMinorLoss + // + colBranchThroughMinorLoss.Caption = "鏀閫氳繃鎹熷け绯绘暟"; + colBranchThroughMinorLoss.FieldName = "BranchThroughMinorLoss"; + colBranchThroughMinorLoss.Name = "colBranchThroughMinorLoss"; + colBranchThroughMinorLoss.Visible = true; + colBranchThroughMinorLoss.VisibleIndex = 5; + // + // threelinkCoefficientViewModelBindingSource + // + threelinkCoefficientViewModelBindingSource.DataSource = typeof(ThreelinkCoefficientViewModel); + // + // textEditBranchThroughCoefficient + // + textEditBranchThroughCoefficient.Location = new Point(454, 56); + textEditBranchThroughCoefficient.Name = "textEditBranchThroughCoefficient"; + textEditBranchThroughCoefficient.Size = new Size(219, 20); + textEditBranchThroughCoefficient.StyleController = layoutControl1; + textEditBranchThroughCoefficient.TabIndex = 6; + // + // textEditRunThroughCoefficient + // + textEditRunThroughCoefficient.Location = new Point(120, 56); + textEditRunThroughCoefficient.Name = "textEditRunThroughCoefficient"; + textEditRunThroughCoefficient.Size = new Size(218, 20); + textEditRunThroughCoefficient.StyleController = layoutControl1; + textEditRunThroughCoefficient.TabIndex = 5; // // BtnOk // @@ -131,12 +232,12 @@ BtnOk.Size = new Size(81, 22); BtnOk.StyleController = layoutControl1; BtnOk.TabIndex = 9; - BtnOk.Text = "瀹屾垚"; + BtnOk.Text = "纭畾"; BtnOk.Click += BtnOk_ClickAsync; // // simpleButton1 // - simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; + simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; simpleButton1.Appearance.Options.UseBackColor = true; simpleButton1.DialogResult = DialogResult.Cancel; simpleButton1.Location = new Point(600, 452); @@ -170,6 +271,7 @@ TextEditCaliber.Size = new Size(218, 20); TextEditCaliber.StyleController = layoutControl1; TextEditCaliber.TabIndex = 3; + TextEditCaliber.SelectedIndexChanged += TextEditCaliber_SelectedIndexChanged; // // TextEditMaterial // @@ -179,22 +281,26 @@ TextEditMaterial.Size = new Size(219, 20); TextEditMaterial.StyleController = layoutControl1; TextEditMaterial.TabIndex = 4; - // - // TextEditCoefficient - // - TextEditCoefficient.Location = new Point(120, 80); - TextEditCoefficient.Name = "TextEditCoefficient"; - TextEditCoefficient.Size = new Size(553, 20); - TextEditCoefficient.StyleController = layoutControl1; - TextEditCoefficient.TabIndex = 7; + TextEditMaterial.SelectedIndexChanged += TextEditMaterial_SelectedIndexChanged; // // TextEditKeyWord // - TextEditKeyWorld.Location = new Point(454, 8); - TextEditKeyWorld.Name = "TextEditKeyWorld"; - TextEditKeyWorld.Size = new Size(219, 20); - TextEditKeyWorld.StyleController = layoutControl1; - TextEditKeyWorld.TabIndex = 2; + TextEditKeyWord.Location = new Point(454, 8); + TextEditKeyWord.Name = "TextEditKeyWord"; + TextEditKeyWord.Size = new Size(219, 20); + TextEditKeyWord.StyleController = layoutControl1; + TextEditKeyWord.TabIndex = 2; + // + // TextEditMinorLoss + // + TextEditMinorLoss.Location = new Point(120, 80); + TextEditMinorLoss.Name = "TextEditMinorLoss"; + TextEditMinorLoss.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + TextEditMinorLoss.Properties.PopupControl = popupContainerControl1; + TextEditMinorLoss.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + TextEditMinorLoss.Size = new Size(553, 20); + TextEditMinorLoss.StyleController = layoutControl1; + TextEditMinorLoss.TabIndex = 7; // // Root // @@ -284,7 +390,7 @@ // // layoutControlItem7 // - layoutControlItem7.Control = TextEditKeyWorld; + layoutControlItem7.Control = TextEditKeyWord; layoutControlItem7.Location = new Point(334, 0); layoutControlItem7.Name = "layoutControlItem7"; layoutControlItem7.Size = new Size(335, 24); @@ -293,12 +399,30 @@ // // layoutControlItem6 // - layoutControlItem6.Control = TextEditCoefficient; + layoutControlItem6.Control = TextEditMinorLoss; layoutControlItem6.Location = new Point(0, 72); layoutControlItem6.Name = "layoutControlItem6"; layoutControlItem6.Size = new Size(669, 24); layoutControlItem6.Text = "鎹熷け绯绘暟:"; layoutControlItem6.TextSize = new Size(100, 14); + // + // layoutControlItem10 + // + layoutControlItem10.Control = textEditRunThroughCoefficient; + layoutControlItem10.Location = new Point(0, 48); + layoutControlItem10.Name = "layoutControlItem10"; + layoutControlItem10.Size = new Size(334, 24); + layoutControlItem10.Text = "杩愯閫氳繃鎹熷け绯绘暟:"; + layoutControlItem10.TextSize = new Size(100, 14); + // + // layoutControlItem11 + // + layoutControlItem11.Control = textEditBranchThroughCoefficient; + layoutControlItem11.Location = new Point(334, 48); + layoutControlItem11.Name = "layoutControlItem11"; + layoutControlItem11.Size = new Size(335, 24); + layoutControlItem11.Text = "鏀閫氳繃鎹熷け绯绘暟:"; + layoutControlItem11.TextSize = new Size(100, 14); // // dxErrorProvider1 // @@ -386,40 +510,6 @@ layoutControlItem3.Text = "鎹熷け绯绘暟:"; layoutControlItem3.TextSize = new Size(52, 14); // - // textEditBranchThroughCoefficient - // - textEditBranchThroughCoefficient.Location = new Point(454, 56); - textEditBranchThroughCoefficient.Name = "textEditBranchThroughCoefficient"; - textEditBranchThroughCoefficient.Size = new Size(219, 20); - textEditBranchThroughCoefficient.StyleController = layoutControl1; - textEditBranchThroughCoefficient.TabIndex = 6; - // - // textEditRunThroughCoefficient - // - textEditRunThroughCoefficient.Location = new Point(120, 56); - textEditRunThroughCoefficient.Name = "textEditRunThroughCoefficient"; - textEditRunThroughCoefficient.Size = new Size(218, 20); - textEditRunThroughCoefficient.StyleController = layoutControl1; - textEditRunThroughCoefficient.TabIndex = 5; - // - // layoutControlItem10 - // - layoutControlItem10.Control = textEditRunThroughCoefficient; - layoutControlItem10.Location = new Point(0, 48); - layoutControlItem10.Name = "layoutControlItem10"; - layoutControlItem10.Size = new Size(334, 24); - layoutControlItem10.Text = "杩愯閫氳繃鎹熷け绯绘暟:"; - layoutControlItem10.TextSize = new Size(100, 14); - // - // layoutControlItem11 - // - layoutControlItem11.Control = textEditBranchThroughCoefficient; - layoutControlItem11.Location = new Point(334, 48); - layoutControlItem11.Name = "layoutControlItem11"; - layoutControlItem11.Size = new Size(335, 24); - layoutControlItem11.Text = "鏀閫氳繃鎹熷け绯绘暟:"; - layoutControlItem11.TextSize = new Size(100, 14); - // // EditAssetsThreelinkMainDlg // AutoScaleDimensions = new SizeF(7F, 14F); @@ -431,12 +521,18 @@ Text = "缂栬緫涓夐��"; ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)popupContainerControl1).EndInit(); + popupContainerControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)treeList1).EndInit(); + ((System.ComponentModel.ISupportInitialize)threelinkCoefficientViewModelBindingSource).EndInit(); + ((System.ComponentModel.ISupportInitialize)textEditBranchThroughCoefficient.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)textEditRunThroughCoefficient.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)TextEditName.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)TextEditCaliber.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)TextEditMaterial.Properties).EndInit(); - ((System.ComponentModel.ISupportInitialize)TextEditCoefficient.Properties).EndInit(); - ((System.ComponentModel.ISupportInitialize)TextEditKeyWorld.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)TextEditKeyWord.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)TextEditMinorLoss.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); @@ -448,6 +544,8 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem12).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem10).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem11).EndInit(); ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem13).EndInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); @@ -459,10 +557,6 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem27).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); - ((System.ComponentModel.ISupportInitialize)textEditBranchThroughCoefficient.Properties).EndInit(); - ((System.ComponentModel.ISupportInitialize)textEditRunThroughCoefficient.Properties).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem10).EndInit(); - ((System.ComponentModel.ISupportInitialize)layoutControlItem11).EndInit(); ResumeLayout(false); } @@ -498,15 +592,24 @@ private DevExpress.XtraEditors.ImageComboBoxEdit TextEditMaterial; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup5; private DevExpress.Utils.ToolTipController toolTipController1; - private DevExpress.XtraEditors.TextEdit TextEditKeyWorld; + private DevExpress.XtraEditors.TextEdit TextEditKeyWord; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; - private DevExpress.XtraEditors.TextEdit TextEditCoefficient; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; private DevExpress.XtraEditors.TextEdit textEditBranchThroughCoefficient; private DevExpress.XtraEditors.TextEdit textEditRunThroughCoefficient; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; + private DevExpress.XtraEditors.PopupContainerControl popupContainerControl1; + private DevExpress.XtraTreeList.TreeList treeList1; + private DevExpress.XtraTreeList.Columns.TreeListColumn colName; + private DevExpress.XtraTreeList.Columns.TreeListColumn colCaliber; + private DevExpress.XtraTreeList.Columns.TreeListColumn colMaterial; + private DevExpress.XtraTreeList.Columns.TreeListColumn colMinorLoss; + private DevExpress.XtraTreeList.Columns.TreeListColumn colRunThroughMinorLoss; + private DevExpress.XtraTreeList.Columns.TreeListColumn colBranchThroughMinorLoss; + private BindingSource threelinkCoefficientViewModelBindingSource; + private DevExpress.XtraEditors.PopupContainerEdit TextEditMinorLoss; } } \ No newline at end of file -- Gitblit v1.9.3