47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
<div class="row text-light">
|
|
<div class="col-5 pe-0 text-left">
|
|
<b>Mapo MON @(DateTime.Today.Year)</b> | <span class="small">v.@version</span>
|
|
</div>
|
|
<div class="col-7 ps-0 text-end">
|
|
<span class="small">@($"{DateTime.Now:HH:mm:ss}")</span> | <a class="text-light" href="https://www.egalware.com/" target="_blank"><img class="img-fluid" width="16" src="images/LogoEgw.png" /> Egalware </a>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
|
|
Version version = typeof(Program).Assembly.GetName().Version;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
StartTimer();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
aTimer.Stop();
|
|
aTimer.Dispose();
|
|
}
|
|
|
|
private static System.Timers.Timer aTimer;
|
|
|
|
public void StartTimer()
|
|
{
|
|
int tOutPeriod = 1000;
|
|
//int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod);
|
|
aTimer = new System.Timers.Timer(tOutPeriod);
|
|
aTimer.Elapsed += ElapsedTimer;
|
|
aTimer.Enabled = true;
|
|
aTimer.Start();
|
|
}
|
|
|
|
public void ElapsedTimer(Object source, System.Timers.ElapsedEventArgs e)
|
|
{
|
|
var pUpd = Task.Run(async () =>
|
|
{
|
|
//await ReloadData();
|
|
await Task.Delay(1);
|
|
await InvokeAsync(StateHasChanged);
|
|
});
|
|
pUpd.Wait();
|
|
}
|
|
} |