From 0f3ec3bf568d61ed1e21291d4d8fb6d914da5669 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 24 Oct 2017 15:47:57 +0200 Subject: [PATCH] Aggiunto AutoUpdater + PrettyBin... --- IOB-WIN/IOB-WIN/App.config | 83 ++++++++++++++++++--------------- IOB-WIN/IOB-WIN/IOB-WIN.csproj | 9 ++++ IOB-WIN/IOB-WIN/IobGeneric.cs | 7 ++- IOB-WIN/IOB-WIN/MainForm.cs | 7 +++ IOB-WIN/IOB-WIN/packages.config | 2 + 5 files changed, 66 insertions(+), 42 deletions(-) diff --git a/IOB-WIN/IOB-WIN/App.config b/IOB-WIN/IOB-WIN/App.config index ffeb746..5289ae4 100644 --- a/IOB-WIN/IOB-WIN/App.config +++ b/IOB-WIN/IOB-WIN/App.config @@ -1,57 +1,64 @@ - + - + - + - - - - - - - + + + + + + + + + + + - - - - + + + - - - - - - - - - + + + + + + + + + - - - - - + + + + - - - - + + + + - - - - - + + + + + - + + + + + + \ No newline at end of file diff --git a/IOB-WIN/IOB-WIN/IOB-WIN.csproj b/IOB-WIN/IOB-WIN/IOB-WIN.csproj index fa15ae4..0a5a495 100644 --- a/IOB-WIN/IOB-WIN/IOB-WIN.csproj +++ b/IOB-WIN/IOB-WIN/IOB-WIN.csproj @@ -32,6 +32,9 @@ 4 + + ..\packages\Autoupdater.NET.Official.1.4.3\lib\net452\AutoUpdater.NET.dll + ..\packages\NLog.4.4.12\lib\net45\NLog.dll @@ -138,4 +141,10 @@ + + + + + + \ No newline at end of file diff --git a/IOB-WIN/IOB-WIN/IobGeneric.cs b/IOB-WIN/IOB-WIN/IobGeneric.cs index 2218c89..61dd85e 100644 --- a/IOB-WIN/IOB-WIN/IobGeneric.cs +++ b/IOB-WIN/IOB-WIN/IobGeneric.cs @@ -330,7 +330,6 @@ namespace IOB_WIN // controllo connessione/connettività if (connectionOk) { - lg.Info("STEP 01.A"); // controllo non sia già in esecuzione... if (!adpCommAct) { @@ -354,6 +353,7 @@ namespace IOB_WIN { bool showDebugData = false; + lg.Info("STEP 01"); // processing dati memoria (lettura, filtraggio, enqueque) if (ciclo == gatherCycle.VHF) { @@ -376,7 +376,7 @@ namespace IOB_WIN // eventuale log! if (utils.CRB("recTime")) logTimeResults(); } - + lg.Info("STEP 02"); // gestione queue (invio, display) svuotaCoda(); reportDataProc(); @@ -385,6 +385,7 @@ namespace IOB_WIN // verifica se debba salvare e mostrare dati checkSavePersDataLayer(); } + lg.Info("STEP 03"); } catch (Exception exc) { @@ -415,7 +416,6 @@ namespace IOB_WIN } else { - lg.Info("STEP 01.B"); // log connessione KO lg.Error("getAndSend - Connessione non disponibile, provo a riconnettere"); // provo a riconnettere SE abilitato tryRestart... @@ -425,7 +425,6 @@ namespace IOB_WIN tryConnect(); } } - lg.Info("STEP 02"); if (eh_refreshed != null) { eh_refreshed(this, new EventArgs()); diff --git a/IOB-WIN/IOB-WIN/MainForm.cs b/IOB-WIN/IOB-WIN/MainForm.cs index eb91a1f..05f3822 100644 --- a/IOB-WIN/IOB-WIN/MainForm.cs +++ b/IOB-WIN/IOB-WIN/MainForm.cs @@ -16,6 +16,8 @@ using System.Diagnostics; using System.IO; using System.Threading; using IOB_UT; +using AutoUpdaterDotNET; +using System.Globalization; namespace IOB_WIN { @@ -136,6 +138,11 @@ namespace IOB_WIN /// public MainForm() { + // avvio autoupdater... + //AutoUpdater.CurrentCulture = CultureInfo.CreateSpecificCulture("it"); + AutoUpdater.Start("http://seriate.steamware.net:8083/SWS/IOB-WIN/manifest.xml"); + + // continuo avvio... InitializeComponent(); lblStatus.Text = "Loading"; diff --git a/IOB-WIN/IOB-WIN/packages.config b/IOB-WIN/IOB-WIN/packages.config index bbf6b99..dfb9513 100644 --- a/IOB-WIN/IOB-WIN/packages.config +++ b/IOB-WIN/IOB-WIN/packages.config @@ -1,6 +1,8 @@  + + \ No newline at end of file