private void Form1_Load(object sender, EventArgs e) { var Values = Enumerable.Range(1, 5) .Select(c => Enumerable.Range(0, 2) .Select(Convert.ToDecimal) .ToList()) .ToList(); _visualDataLoadClass = new VisualDataLoadClass(dataGridView1, "data.txt"); _visualDataLoadClass.SetNullCells(); _calculationClass = new CalculationClass(_visualDataLoadClass); _calculationClass.Calculate(); }
public CalculationClass(VisualDataLoadClass visualDataLoadClass) { _visualDataLoadClass = visualDataLoadClass; }