Exemplo n.º 1
0
        protected override async void OnWindowLoaded()
        {
            RntCache.RefillFrom(AppArgs);
            await ByfServer.SetURL(Default.ServerURL);

            if (ByfServer.IsOnline)
            {
                await ByfCache.RefillFromServer(ByfServer);
            }
        }
Exemplo n.º 2
0
        protected override async Task OnRefreshClickedAsync()
        {
            if (PickedList == null)
            {
                return;
            }
            StartBeingBusy($"Loading {PickedListName} ...");
            await Task.Delay(1);

            await Task.Run(() =>
                           Parallel.Invoke(() => PickedList.ReloadList(),
                                           () => RntCache.RefillFrom(AppArgs)));

            StopBeingBusy();
        }