From aaac84e4ed86d089c01c5b180e4249db73cc78d7 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 19 二月 2025 14:08:04 +0800 Subject: [PATCH] 监测分析改造 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/07-list/HydroWorkingListViewCtrl.Designer.cs | 42 ++++++++++++++++++++++++------------------ 1 files changed, 24 insertions(+), 18 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/07-list/HydroWorkingListViewCtrl.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/07-list/HydroWorkingListViewCtrl.Designer.cs index c36f70b..e32be0b 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/07-list/HydroWorkingListViewCtrl.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/10-working/07-list/HydroWorkingListViewCtrl.Designer.cs @@ -33,21 +33,26 @@ 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(); - listBoxControl1 = new DevExpress.XtraEditors.ListBoxControl(); hydroWorkingListItemViewModelBindingSource = new BindingSource(components); - ((ISupportInitialize)listBoxControl1).BeginInit(); + imageListBoxControl1 = new DevExpress.XtraEditors.ImageListBoxControl(); + toolTipController1 = new DevExpress.Utils.ToolTipController(components); ((ISupportInitialize)hydroWorkingListItemViewModelBindingSource).BeginInit(); + ((ISupportInitialize)imageListBoxControl1).BeginInit(); SuspendLayout(); // - // listBoxControl1 + // hydroWorkingListItemViewModelBindingSource // - listBoxControl1.DataSource = hydroWorkingListItemViewModelBindingSource; - listBoxControl1.Dock = DockStyle.Fill; - listBoxControl1.ItemHeight = 30; - listBoxControl1.Location = new Point(0, 0); - listBoxControl1.Name = "listBoxControl1"; - listBoxControl1.Size = new Size(267, 669); - listBoxControl1.TabIndex = 0; + hydroWorkingListItemViewModelBindingSource.DataSource = typeof(HydroWorkingListItemViewModel); + // + // imageListBoxControl1 + // + imageListBoxControl1.DataSource = hydroWorkingListItemViewModelBindingSource; + imageListBoxControl1.Dock = DockStyle.Fill; + imageListBoxControl1.ItemHeight = 32; + imageListBoxControl1.Location = new Point(0, 0); + imageListBoxControl1.Name = "imageListBoxControl1"; + imageListBoxControl1.Size = new Size(267, 669); + imageListBoxControl1.TabIndex = 0; itemTemplateBase1.Columns.Add(tableColumnDefinition1); templatedItemElement1.FieldName = "Name"; templatedItemElement1.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter; @@ -58,28 +63,29 @@ itemTemplateBase1.Elements.Add(templatedItemElement1); itemTemplateBase1.Name = "template1"; itemTemplateBase1.Rows.Add(tableRowDefinition1); - listBoxControl1.Templates.Add(itemTemplateBase1); - listBoxControl1.SelectedValueChanged += listBoxControl1_SelectedValueChanged; + imageListBoxControl1.Templates.Add(itemTemplateBase1); + imageListBoxControl1.ToolTipController = toolTipController1; + imageListBoxControl1.SelectedValueChanged += imageListBoxControl1_SelectedValueChanged; // - // hydroWorkingListItemViewModelBindingSource + // toolTipController1 // - hydroWorkingListItemViewModelBindingSource.DataSource = typeof(HydroWorkingListItemViewModel); + toolTipController1.GetActiveObjectInfo += toolTipController1_GetActiveObjectInfo; // // HydroWorkingListViewCtrl // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - Controls.Add(listBoxControl1); + Controls.Add(imageListBoxControl1); Name = "HydroWorkingListViewCtrl"; Size = new Size(267, 669); - ((ISupportInitialize)listBoxControl1).EndInit(); ((ISupportInitialize)hydroWorkingListItemViewModelBindingSource).EndInit(); + ((ISupportInitialize)imageListBoxControl1).EndInit(); ResumeLayout(false); } #endregion - - private DevExpress.XtraEditors.ListBoxControl listBoxControl1; private BindingSource hydroWorkingListItemViewModelBindingSource; + private DevExpress.XtraEditors.ImageListBoxControl imageListBoxControl1; + private DevExpress.Utils.ToolTipController toolTipController1; } } -- Gitblit v1.9.3