From 73cf9aa0da697fc4199290e8152ef97b67491631 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 27 Feb 2020 18:40:53 +0100 Subject: [PATCH] Aggiunto step invio file di conf alla partenza --- IOB-WIN/MainForm.cs | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/IOB-WIN/MainForm.cs b/IOB-WIN/MainForm.cs index 6017ff90..9636209a 100644 --- a/IOB-WIN/MainForm.cs +++ b/IOB-WIN/MainForm.cs @@ -486,6 +486,8 @@ namespace IOB_WIN { openChild(item); } + // effettuo upload dei file di configurazione... + uploadIobConfFile(); } /// @@ -729,31 +731,6 @@ namespace IOB_WIN this.LayoutMdi(MdiLayout.TileHorizontal); } - /// - /// Effettua apertura di una nuova finestra CHILD - /// - private void openNewChild() - { - // IOB di default... - string reqIOB = ""; - // richiede al server COSA aprire - try - { - reqIOB = utils.callUrl(urlIob2call); - } - catch (Exception exc) - { - reqIOB = utils.CRS("defIOB"); - displayTaskAndLog(string.Format("Apertura IOB di default da CRS (fallita chiamata a server):{0}{1}", Environment.NewLine, exc)); - } - if (string.IsNullOrEmpty(reqIOB)) - { - reqIOB = utils.CRS("defIOB"); - } - // se non ottiene risposta apre la demo... - openChild(reqIOB); - } - /// /// Chiusura applicazione /// @@ -772,6 +749,13 @@ namespace IOB_WIN } private void uploadIOBConfToolStripMenuItem_Click(object sender, EventArgs e) + { + uploadIobConfFile(); + } + /// + /// Effettua upload dei file di configurazione IOB + /// + private void uploadIobConfFile() { // upload su server i file CONF delle IOB attive... string answ = ""; @@ -815,6 +799,7 @@ namespace IOB_WIN } } } + private void downloadIOBConfToolStripMenuItem_Click(object sender, EventArgs e) { try