| | |
| | | using System.Drawing; |
| | | using System.Drawing.Drawing2D; |
| | | using System.Linq; |
| | | using System.Runtime.Remoting.Contexts; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using static DevExpress.Utils.Drawing.Helpers.NativeMethods; |
| | | |
| | | |
| | | namespace TProduct.WinFrmUI.TPump |
| | |
| | | if (QueryLineVertical1 != null) |
| | | QueryLineVertical1.AxisValue = ratedParas.Q; |
| | | } |
| | | |
| | | public void RefreshRatedParas( |
| | | TProduct.Model.RatedParas4Pump ratedParas ) |
| | | { |
| | | } |
| | | public void RefreshRatedParas( |
| | | TProduct.Model.RatedParas4Pump ratedParas, |
| | | List<Model.TestGradeJudgeItem> testJudgeItems) |
| | |
| | | } |
| | | } |
| | | |
| | | if(_bepPoint != null) |
| | | { |
| | | using (Font fontText = new Font("宋体", 9)) |
| | | using (SolidBrush brushText = new SolidBrush(System.Drawing.Color.FromArgb(255, 0, 255))) |
| | | using (Brush penCurve = new SolidBrush(Color.Red)) |
| | | { |
| | | ControlCoordinates coor = mainChartDiagram.DiagramToPoint(_bepPoint.Q, |
| | | _bepPoint.H, AxisQ, QEAxisY); |
| | | |
| | | g.DrawString(string.Format("{0},{1} @ {2}%",Math.Round(_bepPoint.Q,1),Math.Round(_bepPoint.H,1),Math.Round(_bepPoint.E)), |
| | | fontText, brushText, new PointF(coor.Point.X + 3, coor.Point.Y + 2)); |
| | | g.FillEllipse(penCurve, coor.Point.X - 4, coor.Point.Y - 4, 8, 8); |
| | | } |
| | | } |
| | | |
| | | chartControl1.DrawCorpLogo(g); |
| | | } |
| | | |
| | |
| | | QueryLineHorizontal.Points.Add(new SeriesPoint(0, _queryPt1.H)); |
| | | QueryLineHorizontal.Points.Add(new SeriesPoint(_queryPt1.Q, _queryPt1.H)); |
| | | } |
| | | |
| | | Eventech.Model.GroupPoint _bepPoint = null; |
| | | internal void SetBepPointVisible(bool ischecked) |
| | | { |
| | | if (this._curveExpressQH == null || this._curveExpressQE == null) |
| | | return; |
| | | if (ischecked) |
| | | { |
| | | var bep = Eventech.Common.FitCurveHelper.GetMaxPoint(this._curveExpressQE, 200); |
| | | _bepPoint = new GroupPoint(); |
| | | _bepPoint.Q = bep.X; |
| | | _bepPoint.E = bep.Y; |
| | | _bepPoint.H = Eventech.Common.FitCurveHelper.GetFitPointY(this._curveExpressQH, bep.X); |
| | | } |
| | | else |
| | | { |
| | | _bepPoint = null; |
| | | } |
| | | this.Invalidate(); |
| | | } |
| | | |
| | | private bool _isMoveQueryLineQ1 = false; |
| | | private bool _isMoveQueryLineH1 = false; |