ÎļþÃû´Ó WinFrmUI/PBS.WinFrmUI.Hydro/01-system-curve/SystemCurvePage.cs ÐÞ¸Ä |
| | |
| | | |
| | | public class CalcNodeViewModel |
| | | { |
| | | public int NodeIndex { get; set; } |
| | | public int NodeIndex { get; set; } |
| | | public double Elevation { get; set; } |
| | | public double Flow { get; set; } |
| | | public double Pressure { get; set; } |
| | |
| | | var minY = _waterPointList.Min(x => x.Y); |
| | | var maxY = _waterPointList.Max(x => x.Y); |
| | | |
| | | |
| | | |
| | | var minDynamicPressure = minY; |
| | | _constantLineDynamicPressure.AxisValue = minDynamicPressure; |
| | | _constantLineDynamicPressure.Title.Text = $"æä½ä¾æ°´åå:{minDynamicPressure:N2}m"; |
| | |
| | | |
| | | _xyDiagram.AxisY.WholeRange.Auto = true; |
| | | _xyDiagram.AxisY.VisualRange.Auto = true; |
| | | _xyDiagram.AxisY.NumericScaleOptions.AutoGrid = true; |
| | | _xyDiagram.AxisY.NumericScaleOptions.AutoGrid = true; |
| | | _xyDiagram.AxisY.WholeRange.SideMarginsValue = 0; |
| | | _xyDiagram.AxisY.VisualRange.SideMarginsValue = 0; |
| | | _xyDiagram.AxisY.WholeRange.SetMinMaxValues(minY, 70); |