Files
limanapp/EgwControlCenter.App/Components/Pages/Index.razor.cs
T
Samuele Locatelli d7a22a62a8 Update display app:
- forza reload post edit config
- single click display notifyIcon
- fix condizione doppio avvio
- vari fix from Luca
2024-09-23 18:33:22 +02:00

59 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;
if (!ReqSetup) {
ForceCheck();
}
}
#endregion Private Properties
}
}