Exemplo n.º 1
0
        private void calculateData(IService srv, List <decimal> data, Keys pend)
        {
            Trend t = new Trend();

            t.Moneda = pend.Moneda;
            t.Fecha  = pend.Fecha;
            List <decimal> res = obtainTrend(data);

            for (int pos = data.Count - 2, i = 0; pos >= 0; pos--, i++)
            {
                t.setValue(i, data[pos]);
            }
            //srv.insertPercentage(t);
        }