Esempio n. 1
0
        private void FillChart(double[] firstOtv, double[] secondOtv, Chart[] charts, double firstMultiplier, double secondMultiplier)
        {
            foreach (Chart chart in charts.Take(3))
              {
            chart.Series[0].Points.Clear();
              }

              foreach (int i in firstOtv)
              {
            charts[0].Series[0].Points.AddY(i);
              }

              foreach (int i in secondOtv)
              {
            charts[1].Series[0].Points.AddY(i);
              }

              double[] result = new double[firstOtv.Length];
              for (int i = 0; i < result.Length; i++)
              {
            result[i] = firstOtv[i] * firstMultiplier - secondOtv[i] * secondMultiplier;
            charts[2].Series[0].Points.AddY(result[i]);
              }
        }