Aggiunta scrittura in chiusura

This commit is contained in:
Samuele E. Locatelli
2016-07-20 09:06:59 +02:00
parent 52930ae0d5
commit aa394fafe4
+3 -5
View File
@@ -318,6 +318,9 @@ namespace MTC_Adapter
private void stop_Click(object sender, EventArgs e)
{
agObj.stopAdapter();
// salvo!
savePersistLayer(defPersLayerFile);
savePersistLayer(histPersLayerFile);
stop.Enabled = false;
dump.Enabled = false;
@@ -401,11 +404,6 @@ namespace MTC_Adapter
/// </summary>
public void persistData()
{
//// salvo il file "corrente"
//saveXmlFile(defConfFilePath);
//// salvo anche file in cartella storicizzazione in formato XML
//saveXmlFile(histFilePath);
// salvo ogni "autoSaveSec" secondi dall'ultimo salvataggio...
TimeSpan tempoMod = new TimeSpan(0);
if (File.Exists(defPersLayerFile))