From e08949fdc0c665d0d76c6d41fac2e1dc5cd8de13 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 2 Sep 2016 15:12:49 +0200 Subject: [PATCH] v_1.1.33 chiusura pulita --- MTC_Sim/MTC_Sim/App.config | 2 +- MTC_Sim/MTC_Sim/MainForm.cs | 10 ++++++++++ MTC_Sim/VersGen/AdapterVers.cs | 4 ++-- MTC_Sim/VersGen/AdapterVers.tt | 4 ++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/MTC_Sim/MTC_Sim/App.config b/MTC_Sim/MTC_Sim/App.config index 3c572e6..0cb7a86 100644 --- a/MTC_Sim/MTC_Sim/App.config +++ b/MTC_Sim/MTC_Sim/App.config @@ -44,7 +44,7 @@ - + diff --git a/MTC_Sim/MTC_Sim/MainForm.cs b/MTC_Sim/MTC_Sim/MainForm.cs index 32d753c..247237d 100644 --- a/MTC_Sim/MTC_Sim/MainForm.cs +++ b/MTC_Sim/MTC_Sim/MainForm.cs @@ -1350,6 +1350,16 @@ namespace MTC_Adapter private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { + agObj.stopAdapter(); + // salvo! + savePersistLayer(defPersLayerFile); + savePersistLayer(histPersLayerFile); + + stop.Enabled = false; + dump.Enabled = false; + start.Enabled = true; + gather.Enabled = false; + agObj.tryDisconnect(); } } diff --git a/MTC_Sim/VersGen/AdapterVers.cs b/MTC_Sim/VersGen/AdapterVers.cs index 37c1294..fed21dc 100644 --- a/MTC_Sim/VersGen/AdapterVers.cs +++ b/MTC_Sim/VersGen/AdapterVers.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("1.1.31.100")] -[assembly: AssemblyFileVersion("1.1.31.100")] +[assembly: AssemblyVersion("1.1.33.100")] +[assembly: AssemblyFileVersion("1.1.33.100")] [assembly: AssemblyCopyright("Steamware-SCM-CMS © 2015-2016")] [assembly: AssemblyCompany("Steamware-SCM-CMS")] diff --git a/MTC_Sim/VersGen/AdapterVers.tt b/MTC_Sim/VersGen/AdapterVers.tt index 62f15ee..50ddfbd 100644 --- a/MTC_Sim/VersGen/AdapterVers.tt +++ b/MTC_Sim/VersGen/AdapterVers.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("1.1.31.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("1.1.31.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("1.1.33.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("1.1.33.<#= this.RevisionNumber #>")] [assembly: AssemblyCopyright("Steamware-SCM-CMS © 2015-<#= DateTime.Now.Year #>")] [assembly: AssemblyCompany("Steamware-SCM-CMS")] <#+