Beispiel #1
0
        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));
        }
Beispiel #2
0
 public async Task <string> ShowAsync(DangerousOptionsDialog dialog)
 {
     return(await GetCurrentPage().DisplayActionSheet(dialog.Title, dialog.Cancel, dialog.DangerousOption, dialog.Options.ToArray()));
 }