Ejemplo n.º 1
0
        private async Task RemoveCultureFromLocalStorage()
        {
            if (await MessageBox.ConfirmAsync("Do you really want to remove culture cache?"))
            {
                await LocalStorageService.RemoveItemAsync("culture");

                Messenger.AddInformation(AdmninIndexLocalizer["CultureRemoved"]);                 // TODO Just a demo
            }
        }
Ejemplo n.º 2
0
        private async Task HandleClearCache()
        {
            if (await MessageBox.ConfirmAsync("Do you really want to clear server cache?"))
            {
                await MaintenanceFacade.ClearCache();

                Messenger.AddInformation("Server cache cleared.");
            }
        }
        private async Task HandleSeedClick()
        {
            if (selectedSeedProfile is not null && await MessageBox.ConfirmAsync($"Do you really want to seed {selectedSeedProfile}?"))
            {
                await DataSeedFacade.SeedDataProfile(selectedSeedProfile);

                Messenger.AddInformation($"Seed successful: {selectedSeedProfile}");

                await layoutComponent.HideAsync();
            }
        }