56 lines
1.4 KiB
C#
56 lines
1.4 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.DoFullCheck(true);
|
|
}
|
|
|
|
#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-outline-info" : "btn-outline-primary";
|
|
}
|
|
private string ShowUpdateText
|
|
{
|
|
get => ShowOnlyUpdate ? "Aggiornamenti" : "Mostra Tutti";
|
|
}
|
|
|
|
protected void SetupMode(bool reqSetup)
|
|
{
|
|
ReqSetup = reqSetup;
|
|
}
|
|
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |