protected override void OnInitialized() { Debuger.PrintLn("Initialising ScreenList"); //just temp screnlist screenList = ScreenListService.GetGilBTScreenList(); lng.LangChanged += StateHasChanged; }
protected async override Task OnInitializedAsync() { Debuger.PrintLn("async Initialising ScreenList"); screenList = await ScreenListService.GetGilBTScreenListAsync(); await fillScreenListWithComunes(screenList); listaDoWyswietlania = screenList.Screens; user = await GetLoggedUser(); }
public async Task DeleteClicked() { bool confirmed = await js.InvokeAsync <bool>("confirm", lng.confirmDeleteFromDB); if (confirmed) { ScreenListService.DeleteScreenAsync(Screen).Wait(); NavigateHome(); } }
protected async override Task OnInitializedAsync() { user = await GetLoggedUser(); screenList = await ScreenListService.GetGilBTScreenListAsync(); foreach (Screen s in screenList.Screens) { if (s.uid == Uid) { Screen = s; } } if (Screen == null) { Screen = new Screen(); Screen.uid = Uid; Screen.firmware_ver = "NULL"; Screen.name = "NULL"; Screen.screen_type = eScreenType.unknown; } lng.LangChanged += StateHasChanged; }
public void ApplyClicked() { Screen.from_led_screen = false; ScreenListService.UpdateScreenAsync(Screen).Wait(); }