Update: exit del child --> IOB-MAN DOVREBBE uscire

This commit is contained in:
Samuele E. Locatelli
2019-12-23 09:03:38 +01:00
parent ede8277dc7
commit b536bb46d9
+7 -4
View File
@@ -186,8 +186,13 @@ namespace IOB_MAN
Arguments = "NONE",
WindowStyle = ProcessWindowStyle.Normal
};
// avvio processo
Process p = Process.Start(psi);
// avvio processo con using...
using (Process p = Process.Start(psi))
{
p.WaitForExit();
// ora chiudo current...
this.Close();
}
}
/// <summary>
/// Chiudo primo processo child (se ce ne sono)
@@ -585,8 +590,6 @@ namespace IOB_MAN
updateStatus();
// apre solo 1 con conf "fake" x condurre update...
apriOneUpdate();
Thread.Sleep(1000);
updateStatus();
}
private void panel1_Paint(object sender, PaintEventArgs e)