Beispiel #1
0
 /// <summary>All jobs for a file have completed</summary>
 private static void OnSimulationGroupCompleted(object sender, EventArgs e)
 {
     if (csv)
     {
         string fileName = Path.ChangeExtension((sender as SimulationGroup).FileName, ".db");
         var    storage  = new Storage.DataStore(fileName);
         Report.WriteAllTables(storage, fileName);
         Console.WriteLine("Successfully created csv file " + Path.ChangeExtension(fileName, ".csv"));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Generates a .csv file for each .apsimx file that has been run.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void GenerateCsvFiles(object sender, AllCompletedArgs e)
 {
     foreach (string file in files)
     {
         string             fileName = Path.ChangeExtension(file, ".db");
         Storage.IDataStore storage  = new Storage.DataStore(fileName);
         Report.Report.WriteAllTables(storage, fileName);
         Console.WriteLine("Successfully created csv file " + Path.ChangeExtension(fileName, ".csv"));
     }
 }