@page "/RTD8TM" @using Blazored.Modal.Services @using UI_SequentMicrosystems.Components @using UI_SequentMicrosystems.Services @using UI_SequentMicrosystems.Models @using Blazored.Modal @inject NavigationManager Navigator @inject RTD8TMService _RTD8TMService @inject PointsService _PointsService @inject SyncService _SyncService Temperature
Device Address: @_RTD8TMService.GetAddress() | DataUpdate: @_UpdateCounter | Chart Points: @_RTD8TMService.CountChartData() / @_RTD8TMService.CountFilteredChartData()
@if (!Calibration) {
@if (EditName) { } else { }
}
@if (!EditName) {
@if (Calibration) { } else { }
}
@if (EditName) {
}
@if (_RTD8TMService.GraphData.Keys.Count != 0) { }
@foreach(byte StackID in _RTD8TMService.GetActualData().Keys) {
Stack ID: @StackID
@for (byte chanel = 0; chanel < 8; chanel++) { }
}
@code { public int _UpdateCounter = 0; private bool EditName = false; private bool Calibration = false; [CascadingParameter] public IModalService Modal { get; set; } = default!; protected override void OnInitialized() { //_RTD8TMService.SetAddress("http://10.250.251.131/"); _SyncService.SetAddress(Navigator.BaseUri); _RTD8TMService.EventUpdateValues += UpdateView; } public async Task UpdateView(object? o, bool b) { await InvokeAsync(() => { StateHasChanged(); _UpdateCounter++; }); } }