| | |
| | | /// </summary> |
| | | public event Action<HydroVisualInfo> FlowEffectPropertyValueChangedEvent; |
| | | |
| | | #endregion 事件集 |
| | | #endregion |
| | | |
| | | #region 属性赋值 |
| | | |
| | |
| | | set { this.hydroVisualPropertyCtrl1.SelectedObject = value; } |
| | | } |
| | | |
| | | #endregion 属性赋值 |
| | | /// <summary> |
| | | /// 计算结果 |
| | | /// </summary> |
| | | public Func<HydroCalcuResult> CalcuResult { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | #region 属性更新 |
| | | |
| | |
| | | this.hydroVisualPropertyCtrl1.UpdateRows(); |
| | | } |
| | | |
| | | #endregion 属性更新 |
| | | #endregion |
| | | |
| | | #region 事件实现 |
| | | |
| | |
| | | pumpViewModel.UpdateProperty(); |
| | | this.hydroVisualPropertyCtrl1.UpdateRows(); |
| | | }; |
| | | dlg.SetBindingData(pumpViewModel); |
| | | dlg.SetBindingData(pumpViewModel, this.CalcuResult?.Invoke()); |
| | | dlg.ShowDialog(); |
| | | } |
| | | break; |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion 事件实现 |
| | | #endregion |
| | | |
| | | #region 事件穿透 |
| | | |
| | |
| | | this.FlowEffectPropertyValueChangedEvent?.Invoke(vm?.Vmo); |
| | | } |
| | | |
| | | #endregion 事件穿透 |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |