| | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(string caption, string description, HydroParterPropStatusViewModel propStatus) |
| | | public void SetBindingData(string caption, string description, Yw.Model.HydroParterPropStatusInfo propStatusInfo) |
| | | { |
| | | this.labCaption.ImageOptions.ImageIndex = -1; |
| | | this.labCaption.Text = string.Empty; |
| | |
| | | { |
| | | this.labText.AppendLine(description); |
| | | } |
| | | if (propStatus != null) |
| | | if (propStatusInfo != null) |
| | | { |
| | | switch (propStatus.PropStatus) |
| | | switch (propStatusInfo.PropStatus) |
| | | { |
| | | case Yw.Hydro.ePropStatus.Error: |
| | | { |
| | |
| | | default: break; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(propStatus.StatusInfo)) |
| | | if (!string.IsNullOrEmpty(propStatusInfo.StatusInfo)) |
| | | { |
| | | this.labText.AppendLine(propStatus.StatusInfo); |
| | | this.labText.AppendLine(propStatusInfo.StatusInfo); |
| | | } |
| | | } |
| | | |