From 0cd48df8ccca96a8a0117a508c342a90dc2eacb8 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期五, 08 十一月 2024 13:07:43 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroParterPropertyDescriptionCtrl.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroParterPropertyDescriptionCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroParterPropertyDescriptionCtrl.cs index 24a2a21..1f9465c 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroParterPropertyDescriptionCtrl.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroParterPropertyDescriptionCtrl.cs @@ -29,7 +29,7 @@ this.labText.Text = string.Empty; this.labCaption.Text = caption; - if (string.IsNullOrEmpty(description)) + if (!string.IsNullOrEmpty(description)) { this.labText.AppendLine(description); } @@ -40,25 +40,29 @@ case Yw.Hydro.ePropStatus.Error: { this.labCaption.Text += "(閿欒)"; + this.labCaption.ImageOptions.ImageIndex = 0; } break; case Yw.Hydro.ePropStatus.Normal: { - + this.labCaption.ImageOptions.ImageIndex = 1; } break; case Yw.Hydro.ePropStatus.Lack: { this.labCaption.Text += "(缂虹渷)"; + this.labCaption.ImageOptions.ImageIndex = 2; } break; case Yw.Hydro.ePropStatus.Abnormal: { this.labCaption.Text += "(寮傚父)"; + this.labCaption.ImageOptions.ImageIndex = 3; } break; default: break; } + if (!string.IsNullOrEmpty(propStatus.StatusInfo)) { this.labText.AppendLine(propStatus.StatusInfo); -- Gitblit v1.9.3