From 7c4fde84af5d666236c85b784bf13c9295bcb605 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 29 十月 2024 14:18:46 +0800 Subject: [PATCH] bimface 业务计算显示距离设定 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/HydroParterPropertyCtrl.cs | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/HydroParterPropertyCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/HydroParterPropertyCtrl.cs index 6710f12..4ba1559 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/HydroParterPropertyCtrl.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/HydroParterPropertyCtrl.cs @@ -80,18 +80,6 @@ } /// <summary> - /// 缁戝畾瀵硅薄鍒楄〃 - /// </summary> - public List<HydroParterPropertyViewModel> SelectedObjects - { - get { return this.propertyGridControl1.SelectedObjects?.Select(x => x as HydroParterPropertyViewModel).ToList(); } - set - { - this.propertyGridControl1.SelectedObjects = value?.ToArray(); - } - } - - /// <summary> /// 閲嶆柊浠庢暟鎹簮涓鍙栨暟鎹紝澶栬鎭㈠鍒氬紑濮嬪姞杞界殑鏍峰瓙 /// </summary> public void UpdateData() @@ -401,6 +389,22 @@ var vm = GetPropertyViewModel(e.Row); switch (curvePropAttri.CurveType) { + case HydroCurve.Tank: + { + if (this.SetCurveEvent == null || !this.SetCurveEvent.Invoke(vm, HydroCurve.Pump)) + { + XtraMessageBox.Show("姝e湪寮�鍙戜腑..."); + } + } + break; + case HydroCurve.TankVol: + { + if (this.SetCurveEvent == null || !this.SetCurveEvent.Invoke(vm, HydroCurve.TankVol)) + { + XtraMessageBox.Show("姝e湪寮�鍙戜腑..."); + } + } + break; case HydroCurve.Pump: { if (this.SetCurveEvent == null || !this.SetCurveEvent.Invoke(vm, HydroCurve.Pump)) -- Gitblit v1.9.3