Update AppControlCenter
- aggiunto tooltip su update trovato - posizionato form in basso a sx
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user