public MedGridRow addRow(string title, Pen pen, int datatype, MedPointList points) { MedGridRow row = new MedGridRow(); row.Pen = pen; row.Title = title; row.DataType = datatype; row.Points = points; _rowList.Add(row, datatype); return(row); }
/// <summary> /// 计算总数-某行 /// </summary> /// <param name="row"></param> /// <param name="minvalue"></param> /// <param name="maxvalue"></param> /// <returns></returns> public double Summery(MedGridRow row, double minvalue, double maxvalue) { double sum = 0; foreach (MedPoint point in row.Points) { if ((point.X >= minvalue) && (point.X < maxvalue)) { sum += point.Y; } } return(sum); }
public void Add(MedGridRow row, int typeindex) { _groups[typeindex].Add(row); }