c8b049be4f
- maca gestione timer autorefresh componente - manca testing finale - manca clickonce finale
52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using EgwControlCenter.Core;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace EgwControlCenter.App.Components.Pages
|
|
{
|
|
public partial class Index
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected IJSRuntime JSRuntime { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected void ToggleSetup()
|
|
{
|
|
ReqSetup = !ReqSetup;
|
|
}
|
|
|
|
protected void ForceCheck()
|
|
{
|
|
ACService.ForceCheck();
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
[Inject]
|
|
protected AppControlService ACService { get; set; } = null!;
|
|
|
|
#region Private Properties
|
|
|
|
protected bool ShowOnlyUpdate { get; set; } = true;
|
|
|
|
private System.Reflection.AssemblyName? CurrAssembly { get; set; } = System.Reflection.Assembly.GetExecutingAssembly().GetName();
|
|
private bool ReqSetup { get; set; } = false;
|
|
|
|
private string SetupBtnClass
|
|
{
|
|
get => ReqSetup ? "btn-info" : "btn-primary";
|
|
}
|
|
private string ShowUpdateText
|
|
{
|
|
get => ShowOnlyUpdate ? "Aggiornamenti" : "Mostra Tutti";
|
|
}
|
|
|
|
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |