/// <summary> /// 刷新图表 /// </summary> private void RefreshGraph() { myGraph1.MainPanel.CurveList.Clear(); MedPointList points = new MedPointList(); if (patientScore != null) { foreach (var row in patientScore) { if (row.ModelStatus != ModelStatus.Deleted) { points.Add(points.Count + 1, (double)row.SCORING_VALUE); } } myGraph1.MainPanel.CurveList.Add(new MedCurve(points)); } myGraph1.Invalidate(); }
public MedCurve(MedPointList points, int xaxisindex, int yaxisindex, MedSymbol symbol, System.Drawing.Pen pen, string title, bool hasLine) { this._points = points; this._XaxisIndex = xaxisindex; this._YaxisIndex = yaxisindex; this._pen = pen; if (symbol == null) { this._symbol = new MedSymbol(MedSymbolType.None); } else { this._symbol = symbol; } _symbol.Pen = _pen; _title = title; _hasLine = hasLine; }
public MedCurve(MedPointList points, System.Drawing.Image image, System.Drawing.Color color) : this(points, image) { _pen = new System.Drawing.Pen(color); _symbol.Pen = _pen; }
public MedCurve(MedPointList points, System.Drawing.Pen pen) : this(points) { _pen = pen; _symbol.Pen = _pen; }
public MedCurve(MedPointList points, System.Drawing.Image image) : this(points) { _symbol = new MedSymbol(image); _symbol.Pen = _pen; }
public MedCurve(MedPointList points) : this(points, 0, 0, null, new System.Drawing.Pen(System.Drawing.Color.Black)) { _symbol.Pen = _pen; }
public MedCurve(MedPointList points, int xaxisindex, int yaxisindex, MedSymbol symbol, System.Drawing.Pen pen) : this(points, xaxisindex, yaxisindex, symbol, pen, null) { }
public MedCurve(MedPointList points, int xaxisindex, int yaxisindex, MedSymbol symbol, System.Drawing.Pen pen, string title) : this(points, xaxisindex, yaxisindex, symbol, pen, title, true) { }