Exemple #1
0
 protected override void OnInitialized()
 {
     Debuger.PrintLn("Initialising ScreenList");
     //just temp screnlist
     screenList       = ScreenListService.GetGilBTScreenList();
     lng.LangChanged += StateHasChanged;
 }
Exemple #2
0
        protected async override Task OnInitializedAsync()
        {
            Debuger.PrintLn("async Initialising ScreenList");
            screenList = await ScreenListService.GetGilBTScreenListAsync();
            await fillScreenListWithComunes(screenList);

            listaDoWyswietlania = screenList.Screens;
            user = await GetLoggedUser();
        }
Exemple #3
0
        public async Task DeleteClicked()
        {
            bool confirmed = await js.InvokeAsync <bool>("confirm", lng.confirmDeleteFromDB);

            if (confirmed)
            {
                ScreenListService.DeleteScreenAsync(Screen).Wait();
                NavigateHome();
            }
        }
Exemple #4
0
        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;
        }
Exemple #5
0
 public void ApplyClicked()
 {
     Screen.from_led_screen = false;
     ScreenListService.UpdateScreenAsync(Screen).Wait();
 }