Update AppControlCenter

- aggiunto tooltip su update trovato
- posizionato form in basso a sx
This commit is contained in:
Samuele Locatelli
2024-09-19 08:10:46 +02:00
parent 530ded0ff1
commit 46345e3393
5 changed files with 116 additions and 25 deletions
+39
View File
@@ -57,6 +57,45 @@ namespace EgwControlCenter.Core
#region Public Properties
/// <summary>
/// DataOra ultimo check locale
/// </summary>
public DateTime LastChecked()
{
DateTime answ = new DateTime(DateTime.Today.Year, 1, 1);
//se ho record locali cerco il + recente
if (ListStatus != null && ListStatus.Count > 0)
{
var primo = ListStatus
.OrderByDescending(x => x.LastUpdateLoc)
.FirstOrDefault();
if (primo != null)
{
answ = primo.LastUpdateLoc;
}
}
return answ;
}
public bool HasUpdate()
{
bool answ = false;
//se ho record locali cerco il + recente
if (ListStatus != null && ListStatus.Count > 0)
{
foreach (var item in ListStatus)
{
answ = item.HasUpdate();
if(answ)
{
break;
}
}
}
return answ;
}
/// <summary>
/// Elenco degli oggetti stato dei programmi monitorati
/// </summary>