public void CheckMinCard(string fileName1, string fileName2) { List <Observation> observationsList = MOCreator.ReadObsModelFiles(fileName1, fileName2); if (observationsList == null || observationsList.Count == 0) { return; } FlipFunction flip = new FlipFunction(); TimeSpan x = new TimeSpan(0, 5, 0); IterativeDeepening salgo = new IterativeDeepening(flip, x); ConesAlgorithm algo = new ConesAlgorithm(salgo); CSVExport myExport = new CSVExport(); foreach (Observation obs in observationsList) { algo.CheckMinCard(obs, myExport); } myExport.ExportToFile(observationsList.First().TheModel.Id + "MinCard.csv"); }