Esempio n. 1
0
        private void AddRowToPriceTable(ProductPriceModel model, DataTable table)
        {
            List <string> values = model.productPriceToString().Split(';').ToList <string>();
            DataRow       row    = table.NewRow();

            row["Name"] = values[0];
            for (int i = 1; i <= MONTHS_NUMBER; i++)
            {
                row[i] = values[1];
            }

            table.Rows.Add(row);
        }