From 12a6316ffa897b4ce4205f545b88359195b386d6 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 25 九月 2024 17:34:24 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/04-scheme/XhsProjectSimulationSchemeMgrCtrl.Designer.cs | 39 +++++++++++++++++++++++++++++++++------ 1 files changed, 33 insertions(+), 6 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/04-scheme/XhsProjectSimulationSchemeMgrCtrl.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/04-scheme/XhsProjectSimulationSchemeMgrCtrl.Designer.cs index e3930a7..d5b02c3 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/04-scheme/XhsProjectSimulationSchemeMgrCtrl.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/04-scheme/XhsProjectSimulationSchemeMgrCtrl.Designer.cs @@ -28,12 +28,18 @@ /// </summary> private void InitializeComponent() { + components = new Container(); + DevExpress.XtraEditors.TableLayout.ItemTemplateBase itemTemplateBase1 = new DevExpress.XtraEditors.TableLayout.ItemTemplateBase(); + DevExpress.XtraEditors.TableLayout.TableColumnDefinition tableColumnDefinition1 = new DevExpress.XtraEditors.TableLayout.TableColumnDefinition(); + DevExpress.XtraEditors.TableLayout.TemplatedItemElement templatedItemElement1 = new DevExpress.XtraEditors.TableLayout.TemplatedItemElement(); + DevExpress.XtraEditors.TableLayout.TableRowDefinition tableRowDefinition1 = new DevExpress.XtraEditors.TableLayout.TableRowDefinition(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - listBoxControl1 = new DevExpress.XtraEditors.ListBoxControl(); - imgCmbProjectSiteList = new DevExpress.XtraEditors.ImageComboBoxEdit(); + listBoxControl1 = new ListBoxControl(); + imgCmbProjectSiteList = new ImageComboBoxEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); itemForProjectSiteList = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + xhsProjectSimulationSchemeMgrViewModelBindingSource = new BindingSource(components); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)listBoxControl1).BeginInit(); @@ -41,6 +47,7 @@ ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)itemForProjectSiteList).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); + ((ISupportInitialize)xhsProjectSimulationSchemeMgrViewModelBindingSource).BeginInit(); SuspendLayout(); // // layoutControl1 @@ -57,22 +64,36 @@ // // listBoxControl1 // + listBoxControl1.DataSource = xhsProjectSimulationSchemeMgrViewModelBindingSource; + listBoxControl1.DisplayMember = "Name"; + listBoxControl1.ItemHeight = 38; listBoxControl1.Location = new Point(0, 21); listBoxControl1.Name = "listBoxControl1"; listBoxControl1.Size = new Size(257, 446); listBoxControl1.StyleController = layoutControl1; listBoxControl1.TabIndex = 5; + itemTemplateBase1.Columns.Add(tableColumnDefinition1); + templatedItemElement1.FieldName = "Name"; + templatedItemElement1.ImageOptions.ImageAlignment = TileItemContentAlignment.MiddleCenter; + templatedItemElement1.ImageOptions.ImageScaleMode = TileItemImageScaleMode.ZoomInside; + templatedItemElement1.Text = "Name"; + templatedItemElement1.TextAlignment = TileItemContentAlignment.MiddleLeft; + templatedItemElement1.TextLocation = new Point(30, 0); + itemTemplateBase1.Elements.Add(templatedItemElement1); + itemTemplateBase1.Name = "template1"; + itemTemplateBase1.Rows.Add(tableRowDefinition1); + listBoxControl1.Templates.Add(itemTemplateBase1); + listBoxControl1.ValueMember = "ID"; // // imgCmbProjectSiteList // imgCmbProjectSiteList.Location = new Point(0, 0); imgCmbProjectSiteList.Name = "imgCmbProjectSiteList"; - imgCmbProjectSiteList.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + imgCmbProjectSiteList.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); imgCmbProjectSiteList.Size = new Size(257, 20); imgCmbProjectSiteList.StyleController = layoutControl1; imgCmbProjectSiteList.TabIndex = 4; imgCmbProjectSiteList.SelectedIndexChanged += imgCmbProjectSiteList_SelectedIndexChanged; - imgCmbProjectSiteList.SelectedValueChanged += imgCmbProjectSiteList_SelectedValueChanged; // // Root // @@ -105,12 +126,16 @@ layoutControlItem1.TextSize = new Size(0, 0); layoutControlItem1.TextVisible = false; // - // XhsSchemeMgrListCtrl + // xhsProjectSimulationSchemeMgrViewModelBindingSource + // + xhsProjectSimulationSchemeMgrViewModelBindingSource.DataSource = typeof(XhsProjectSimulationSchemeMgrViewModel); + // + // XhsProjectSimulationSchemeMgrCtrl // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); - Name = "XhsSchemeMgrListCtrl"; + Name = "XhsProjectSimulationSchemeMgrCtrl"; Size = new Size(257, 467); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); @@ -119,6 +144,7 @@ ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)itemForProjectSiteList).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); + ((ISupportInitialize)xhsProjectSimulationSchemeMgrViewModelBindingSource).EndInit(); ResumeLayout(false); } @@ -130,5 +156,6 @@ private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlItem itemForProjectSiteList; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private BindingSource xhsProjectSimulationSchemeMgrViewModelBindingSource; } } -- Gitblit v1.9.3