lixiaojun
2025-01-06 f373ad1f566c9c8679547f4205d86eb6e0836d59
WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs
@@ -43,10 +43,13 @@
        /// 分级属性值改变事件
        /// </summary>
        public event Action<HydroVisualViewModel> GradingPropertyValueChangedEvent;
        /// <summary>
        /// 水流动画属性值改变事件
        /// 构件改变事件
        /// </summary>
        public event Action<HydroVisualViewModel> FlowEffectPropertyValueChangedEvent;
        public event Action<HydroParterInfo, eChangeType> ParterChangedEvent;
        /// <summary>
        /// 强调连接节点事件
        /// 第一个参数为本身Code
@@ -641,9 +644,18 @@
            }
            vm.UpdateVmoProperty();
            this.PropertyValueChangedEvent?.Invoke(vm);
            var realFieldName = fieldName;
            var descriptor = this.propertyGridControl1.GetPropertyDescriptor(e.Row);
            if (descriptor != null)
            {
                //真实属性名称
                var realPropAttri = (HydroRealProAttribute)descriptor.Attributes[typeof(HydroRealProAttribute)];
                if (realPropAttri != null)
                {
                    realFieldName = realPropAttri.RealPropName;
                }
                var hydroMarkPropAttri = descriptor.Attributes[typeof(HydroMarkProAttribute)];
                if (hydroMarkPropAttri != null)
                {
@@ -656,13 +668,10 @@
                    this.GradingPropertyValueChangedEvent?.Invoke(vm);
                }
                var hydroFlowDirectionPropAttri = descriptor.Attributes[typeof(HydroFlowDirectionProAttribute)];
                if (hydroFlowDirectionPropAttri != null)
                {
                    this.FlowEffectPropertyValueChangedEvent?.Invoke(vm);
                }
                this.propertyGridControl1.UpdateRows();
            }
            _propStatusHelper?.UpdatePropStatus(vm.Code, realFieldName, Yw.Hydro.ePropStatus.Normal, $"{DateTime.Now.ToStandardString()}通过属性控件修改");
            this.ParterChangedEvent?.Invoke(vm.Vmo, eChangeType.Update);
        }
        //Db匹配
@@ -837,12 +846,14 @@
            var dlg = new HydroCurveEditDlg();
            dlg.ReloadDataEvent += (rhs) =>
            {
                this.ParterChangedEvent?.Invoke(rhs, eChangeType.Update);
            };
            dlg.SetBindingData(curve);
            dlg.ShowDialog();
        }
    }
}