45 lines
963 B
C#
45 lines
963 B
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 AppControlService ACService { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected async Task ForceCheck()
|
|
{
|
|
await ACService.DoFullCheckAsync(true);
|
|
}
|
|
|
|
protected async Task SetupMode(bool reqSetup)
|
|
{
|
|
ReqSetup = reqSetup;
|
|
if (!ReqSetup)
|
|
{
|
|
await ForceCheck();
|
|
}
|
|
}
|
|
|
|
protected void ToggleSetup()
|
|
{
|
|
ReqSetup = !ReqSetup;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Properties
|
|
|
|
private bool ReqSetup { get; set; } = false;
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |