lixiaojun
2025-01-24 7b65f86343ca014b12894f09b7d62e8b5ac1f95d
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/06-mark/SimulationMarkHelper.cs
@@ -4,20 +4,22 @@
namespace HStation.WinFrmUI
{
    /// <summary>
    ///
    /// 水力模拟标注辅助类
    /// </summary>
    public class SimulationMarkHelper
    {
        /// <summary>
        /// 
        /// </summary>
        public SimulationMarkHelper(SimulationVisualListHelper visualListHelper, ISimulationMarkView view)
        public SimulationMarkHelper(SimulationVisualListHelper visualListHelper, SimulationCalcuResultHelper calcuResultHelper, ISimulationMarkView view)
        {
            _visualListHelper = visualListHelper;
            _calcuResultHelper = calcuResultHelper;
            _views = new List<ISimulationMarkView>() { view };
        }
        private SimulationVisualListHelper _visualListHelper = null;//可见列表辅助类
        private SimulationCalcuResultHelper _calcuResultHelper = null;//计算结果辅助类
        private List<ISimulationMarkView> _views = null;//视图列表
        /// <summary>
@@ -69,7 +71,7 @@
            {
                if (_results == null)
                {
                    _results = HydroMarkHelper.GetResultList(_visualListHelper.HydroInfo, this.Sets);
                    _results = HydroMarkHelper.GetResultList(_visualListHelper.HydroInfo, this.Sets, _calcuResultHelper.GetVisualDict());
                    if (_results == null)
                    {
                        _results = new List<HydroMarkResultViewModel>();
@@ -122,7 +124,7 @@
            {
                return;
            }
            var result = HydroMarkHelper.GetResult(visual, this.Sets);
            var result = HydroMarkHelper.GetResult(visual, this.Sets, _calcuResultHelper.GetVisualDict());
            if (result == null)
            {
                return;