| | |
| | | /// 分级属性值改变事件 |
| | | /// </summary> |
| | | public event Action<HydroVisualViewModel> GradingPropertyValueChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 水流动画属性值改变事件 |
| | | /// 构件改变事件 |
| | | /// </summary> |
| | | public event Action<HydroVisualViewModel> FlowEffectPropertyValueChangedEvent; |
| | | public event Action<HydroParterInfo, eChangeType> ParterChangedEvent; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 强调连接节点事件 |
| | | /// 第一个参数为本身Code |
| | |
| | | } |
| | | 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) |
| | | { |
| | |
| | | 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匹配 |
| | |
| | | var dlg = new HydroCurveEditDlg(); |
| | | dlg.ReloadDataEvent += (rhs) => |
| | | { |
| | | |
| | | this.ParterChangedEvent?.Invoke(rhs, eChangeType.Update); |
| | | }; |
| | | dlg.SetBindingData(curve); |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |