Esempio n. 1
0
        protected async Task DeleteAsync()
        {
            if (await Navigator.AskAsync($"Do you really want to delete being '{Model.Name}'?"))
            {
                await Api.DeleteBeingAsync(Model.Id);

                Navigator.OpenBeings();
            }
        }
Esempio n. 2
0
        public async Task DeleteAsync()
        {
            if (await Navigator.AskAsync($"Do you really want to delete entry '{Model.Title}'?"))
            {
                await Api.DeleteEntryAsync(Model.Id);

                Navigator.OpenTimeline();
            }
        }
Esempio n. 3
0
        protected async Task DeleteAsync()
        {
            if (await Navigator.AskAsync($"Do you really want to delete story '{Model.Title}'?"))
            {
                await Api.DeleteStoryAsync(Model.Id);

                Navigator.OpenStories();
            }
        }
Esempio n. 4
0
        public async Task OnClickAsync()
        {
            if (await navigator.AskAsync($"Turn {(IsEnabled ? "off" : "on")} point of interest layer? {Environment.NewLine}Requires reloading the application."))
            {
                await properties.IsPointOfInterestAsync(IsEnabled = !IsEnabled);

                await navigator.ReloadAsync();
            }
        }
Esempio n. 5
0
        protected async Task DeleteAsync()
        {
            if (await Navigator.AskAsync($"Do you really want to delete this image?"))
            {
                await Api.DeleteImageAsync(EntryId, ImageId);

                Navigator.OpenEntryDetail(EntryId);
            }
        }