diff --git a/MP.WASM.Mon/Client/Components/CmpFooter.razor.cs b/MP.WASM.Mon/Client/Components/CmpFooter.razor.cs
index b2d4ac98..b125d260 100644
--- a/MP.WASM.Mon/Client/Components/CmpFooter.razor.cs
+++ b/MP.WASM.Mon/Client/Components/CmpFooter.razor.cs
@@ -18,15 +18,15 @@ namespace MP.WASM.Mon.Client.Components
var pUpd = Task.Run(async () =>
{
await Task.Delay(1);
- await InvokeAsync(StateHasChanged);
+ await InvokeAsync(() => StateHasChanged());
});
pUpd.Wait();
- Log.Trace($"Elapsed Timer Footer");
+ //Log.Trace($"Elapsed Timer Footer");
}
public void StartTimer()
{
- int tOutPeriod = 1000;
+ int tOutPeriod = 5000;
//int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod);
aTimer = new System.Timers.Timer(tOutPeriod);
aTimer.Elapsed += ElapsedTimer;
diff --git a/MP.WASM.Mon/Client/Components/CmpHeader.razor b/MP.WASM.Mon/Client/Components/CmpHeader.razor
index 1c2ae42d..38798b9d 100644
--- a/MP.WASM.Mon/Client/Components/CmpHeader.razor
+++ b/MP.WASM.Mon/Client/Components/CmpHeader.razor
@@ -1,12 +1,12 @@
-

+
MP MONitor
@($"{DateTime.Now:dddd dd MMMM yyyy}")
-

+

EgalWare
diff --git a/MP.WASM.Mon/Client/Components/DetailMSE.razor.cs b/MP.WASM.Mon/Client/Components/DetailMSE.razor.cs
index 56cb8ba5..9aa2b634 100644
--- a/MP.WASM.Mon/Client/Components/DetailMSE.razor.cs
+++ b/MP.WASM.Mon/Client/Components/DetailMSE.razor.cs
@@ -32,6 +32,24 @@ namespace MP.WASM.Mon.Client.Components
[Parameter]
public string showArt { get; set; } = "";
+
+ [Parameter]
+ public bool doBlink { get; set; } = false;
+ //{
+ // set
+ // {
+ // // se true --> ricarica
+ // if (value)
+ // {
+ // var pUpd = Task.Run(async () =>
+ // {
+ // await InvokeAsync(() => StateHasChanged());
+ // });
+ // pUpd.Wait();
+ // }
+ // }
+ //}
+
#endregion Public Properties
#region Public Methods
@@ -74,7 +92,7 @@ namespace MP.WASM.Mon.Client.Components
{
Log.Trace($"Elapsed Timer {CurrRecord?.CodMacchina}");
}
- await InvokeAsync(StateHasChanged);
+ await InvokeAsync(() => StateHasChanged());
}
OldRecord = CurrRecord;
});
@@ -157,7 +175,7 @@ namespace MP.WASM.Mon.Client.Components
protected override async Task OnInitializedAsync()
{
- StartTimer();
+ //StartTimer();
Random rnd = new Random();
await Task.Delay(rnd.Next(5));
setupConf();
@@ -228,11 +246,17 @@ namespace MP.WASM.Mon.Client.Components
string answ = $"{baseCss}{codColore}";
if (doAnimate && codColore != "Ve")
{
+#if false
// blink se secondo pari...
DateTime adesso = DateTime.Now;
int resto = 0;
Math.DivRem(adesso.Second, 2, out resto);
if (resto == 0)
+ {
+ answ += "_b";
+ }
+#endif
+ if (doBlink)
{
answ += "_b";
}