32 lines
688 B
C#
32 lines
688 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.Prog.Data;
|
|
|
|
namespace MP.Prog.Pages
|
|
{
|
|
public partial class Setup
|
|
{
|
|
#region Private Properties
|
|
|
|
private bool isLoading { get; set; } = false;
|
|
|
|
#endregion Private Properties
|
|
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected FileArchDataService DataService { get; set; }
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected async void ForceCheck(int maxHour)
|
|
{
|
|
isLoading = true;
|
|
await DataService.updateAllArchive(maxHour);
|
|
isLoading = false;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |