| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public event Action<ValvePerformCoordinate> OnChangedCoord = null; |
| | | public event Action<ValveCoordinate> OnChangedCoord = null; |
| | | |
| | | /// <summary> |
| | | /// 坐标参数 |
| | | /// </summary> |
| | | public ValvePerformCoordinate CoordinateParas |
| | | public ValveCoordinate CoordinateParas |
| | | { |
| | | get => _coordinate_paras; |
| | | set => _coordinate_paras = value; |
| | | } |
| | | private ValvePerformCoordinate _coordinate_paras = null; |
| | | private ValveCoordinate _coordinate_paras = null; |
| | | |
| | | |
| | | |
| | |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | /// <param name="coordinate">坐标参数</param> |
| | | public void SetBindingData(ValvePerformCoordinate coordinate) |
| | | public void SetBindingData(ValveCoordinate coordinate) |
| | | { |
| | | if (coordinate == null) |
| | | return; |
| | | |
| | | _coordinate_paras = new ValvePerformCoordinate(coordinate); |
| | | _coordinate_paras = new ValveCoordinate(coordinate); |
| | | this.textMinDispQ.EditValue = _coordinate_paras.CoordMinQ; |
| | | |
| | | this.textGridNumberX.EditValue = _coordinate_paras.GridNumberX; |