コード例 #1
0
        /// <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();
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public MedCurve(MedPointList points, System.Drawing.Image image, System.Drawing.Color color) : this(points, image)
 {
     _pen = new System.Drawing.Pen(color); _symbol.Pen = _pen;
 }
コード例 #4
0
 public MedCurve(MedPointList points, System.Drawing.Pen pen) : this(points) { _pen = pen; _symbol.Pen = _pen; }
コード例 #5
0
 public MedCurve(MedPointList points, System.Drawing.Image image) : this(points) { _symbol = new MedSymbol(image); _symbol.Pen = _pen; }
コード例 #6
0
 public MedCurve(MedPointList points) : this(points, 0, 0, null, new System.Drawing.Pen(System.Drawing.Color.Black))
 {
     _symbol.Pen = _pen;
 }
コード例 #7
0
 public MedCurve(MedPointList points, int xaxisindex, int yaxisindex, MedSymbol symbol, System.Drawing.Pen pen) : this(points, xaxisindex, yaxisindex, symbol, pen, null)
 {
 }
コード例 #8
0
 public MedCurve(MedPointList points, int xaxisindex, int yaxisindex, MedSymbol symbol, System.Drawing.Pen pen, string title) : this(points, xaxisindex, yaxisindex, symbol, pen, title, true)
 {
 }