示例#1
0
 public async Task <int[]> SelectChoicesAsync(
     string title,
     IList <string> choices,
     string confirmingText = "Ok",
     string dismissiveText = "Cancel",
     MaterialConfirmationDialogConfiguration configuration = null)
 {
     return((int[])await MaterialConfirmationDialog.ShowSelectChoicesAsync(title, choices, confirmingText, dismissiveText, configuration));
 }
示例#2
0
 /// <summary>
 /// Shows a confirmation dialog that allows the user to select any of the listed choices. Returns the indices of the selected choices. If none was selected, returns an empty array.
 /// </summary>
 /// <param name="title">The title of the confirmation dialog. This parameter must not be null or empty.</param>
 /// <param name="choices">The list of choices the user will choose from.</param>
 /// <param name="selectedIndices">The currently selected indices.</param>
 /// <param name="configuration">The style of the confirmation dialog.</param>
 /// <exception cref="ArgumentNullException" />
 /// <exception cref="IndexOutOfRangeException" />
 public async Task <int[]> SelectChoicesAsync(string title, IList <string> choices, List <int> selectedIndices, MaterialConfirmationDialogConfiguration configuration = null)
 {
     return((int[])await MaterialConfirmationDialog.ShowSelectChoicesAsync(title, choices, selectedIndices, configuration));
 }