Update comportamento chiusura x update
This commit is contained in:
+10
-14
@@ -183,15 +183,19 @@ namespace IOB_MAN
|
||||
psi = new ProcessStartInfo
|
||||
{
|
||||
FileName = TargetExe,
|
||||
Arguments = "NONE",
|
||||
Arguments = "MODE=MAN IOB=NONE",
|
||||
WindowStyle = ProcessWindowStyle.Normal
|
||||
};
|
||||
|
||||
// avvio processo con using...
|
||||
using (Process p = Process.Start(psi))
|
||||
{
|
||||
p.WaitForExit();
|
||||
// ora chiudo current...
|
||||
this.Close();
|
||||
// ora chiudo current... SE configurato
|
||||
if (utils.CRB("closeOnChildUpdate"))
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -373,13 +377,6 @@ namespace IOB_MAN
|
||||
item.isRunning = true;
|
||||
}
|
||||
}
|
||||
#if false
|
||||
// ora procdedo alla cancellazione...
|
||||
foreach (var item in item2rem)
|
||||
{
|
||||
ElencoIOB.Remove(item);
|
||||
}
|
||||
#endif
|
||||
// aggiorno datagrid!
|
||||
dgvManagedItems.Invalidate();
|
||||
updateStatus();
|
||||
@@ -414,7 +411,7 @@ namespace IOB_MAN
|
||||
}
|
||||
}
|
||||
// per sicurezza CERCO i processi x nome...
|
||||
string nomeProc = Path.GetFileName(TargetExe).Replace(".exe","");
|
||||
string nomeProc = Path.GetFileName(TargetExe).Replace(".exe", "");
|
||||
var stillRunningProc = Process.GetProcessesByName(nomeProc);
|
||||
if (stillRunningProc != null)
|
||||
{
|
||||
@@ -444,7 +441,7 @@ namespace IOB_MAN
|
||||
{
|
||||
bool selected = (dgvManagedItems.SelectedRows.Count > 0);
|
||||
btnClose.Enabled = selected;
|
||||
}
|
||||
}
|
||||
|
||||
private void dgvManagedItems_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
@@ -574,7 +571,7 @@ namespace IOB_MAN
|
||||
// apre solo 1 con conf "fake" x condurre update...
|
||||
apriOneUpdate();
|
||||
}
|
||||
|
||||
|
||||
private void btnCloseAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
// chiude tutto
|
||||
@@ -617,7 +614,6 @@ namespace IOB_MAN
|
||||
updateStatus();
|
||||
// apre solo 1 con conf "fake" x condurre update...
|
||||
apriOneUpdate();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user