private void UpdateFlowProfileFromIList(IList <DataPoint> pointList)
        {
            ControlFlowPoints.Clear();
            TrackedFlowPoints.Clear();
            int i = 0;

            foreach (DataPoint point in pointList)
            {
                ControlFlowPoints.Add(point);
                TrackedFlowPoints.Add(new PointTracker(point.X, point.Y, i, ControlFlowPoints));
                i++;
            }
        }
 private void UpdateFlowProfileFromLists(List <Double> times, List <Double> values)
 {
     ControlFlowPoints.Clear();
     TrackedFlowPoints.Clear();
     for (int i = 0; i < values.Count(); i++)
     {
         DataPoint point = new DataPoint(times[i], values[i]);
         ControlFlowPoints.Add(point);
         TrackedFlowPoints.Add(new PointTracker(point.X, point.Y, i, ControlFlowPoints));
         integrals = new List <Double>();
         integrals = ProfileConverter.SimpleIntegrate(values, SamplingInterval);
         intTimes  = times;
     }
 }