public async Task <T> ShowAsync <T>(DangerousOptionsDialog <T> dialog) { string selectedLabel = await GetCurrentPage().DisplayActionSheet(dialog.Title, dialog.Cancel.Key, dialog.DangerousOption.Key, dialog.Options.Select(o => o.Key).ToArray()); return(dialog.GetSelectedOption(selectedLabel)); }
public async Task <string> ShowAsync(DangerousOptionsDialog dialog) { return(await GetCurrentPage().DisplayActionSheet(dialog.Title, dialog.Cancel, dialog.DangerousOption, dialog.Options.ToArray())); }