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