Fix condizione chiusura e controllo x report IOB chiusi

This commit is contained in:
Samuele Locatelli
2025-12-21 18:31:05 +01:00
parent 9ce0812061
commit fd126faabb
2 changed files with 14 additions and 5 deletions
+13 -4
View File
@@ -212,8 +212,8 @@ namespace IOB_MAN.Core.Services
/// <param name="doReset">resetta elenco</param>
public void DoCloseAll(bool doReset)
{
isBusy = true;
CheckRunningChild();
isBusy = true;
if (ListIobAdapters.Count > 0)
{
List<int> listPID = new List<int>();
@@ -249,8 +249,10 @@ namespace IOB_MAN.Core.Services
});
}
}
isBusy = false;
// verifico nuovamente i processi
CheckRunningChild();
isBusy = true;
List<IobAdapt> stillRunList = new List<IobAdapt>();
if (ListIobAdapters.Count > 0)
{
@@ -322,10 +324,9 @@ namespace IOB_MAN.Core.Services
{
isBusy = true;
ForceKillByPID(childReq.pID);
CheckRunningChild();
ReportStatusUpd();
isBusy = false;
CheckRunningChild();
ReportStatusUpd();
}
/// <summary>
@@ -883,6 +884,14 @@ namespace IOB_MAN.Core.Services
}
);
}
// li segno spenti...
else
{
foreach (var item in ListIobAdapters)
{
item.isRunning = false;
}
}
}
}
sw.Stop();
+1 -1
View File
@@ -8,7 +8,7 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Version>4.0.2512.2011</Version>
<Version>4.0.2512.2118</Version>
<Configurations>Debug;Release;Remote_DEBUG</Configurations>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>