Exemple #1
0
 /// <summary>
 /// The user have decided to save or not to save the current file via the parameter
 /// Then are all building objects removed and the update of the GUI comes in
 /// Lastly all components are reset to how they were when the application started
 /// </summary>
 /// <param name="save"></param>
 public void NewFile(bool save)
 {
     if (save)
     {
         SaveFile();
     }
     SQLQuery.DeleteAllBuildings();
     buildingManager.DeleteAll();
     ClearTable();
     filePath      = null;
     savedUpToDate = true;
     buildingManager.SetDisplayList();
 }