protected async Task DeleteAsync() { if (await Navigator.AskAsync($"Do you really want to delete being '{Model.Name}'?")) { await Api.DeleteBeingAsync(Model.Id); Navigator.OpenBeings(); } }
public async Task DeleteAsync() { if (await Navigator.AskAsync($"Do you really want to delete entry '{Model.Title}'?")) { await Api.DeleteEntryAsync(Model.Id); Navigator.OpenTimeline(); } }
protected async Task DeleteAsync() { if (await Navigator.AskAsync($"Do you really want to delete story '{Model.Title}'?")) { await Api.DeleteStoryAsync(Model.Id); Navigator.OpenStories(); } }
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(); } }
protected async Task DeleteAsync() { if (await Navigator.AskAsync($"Do you really want to delete this image?")) { await Api.DeleteImageAsync(EntryId, ImageId); Navigator.OpenEntryDetail(EntryId); } }