Exemple #1
0
 public Task AlertAsync(
     string message,
     string title,
     MaterialAlertDialogConfiguration configuration = null)
 {
     return(MaterialAlertDialog.AlertAsync(message, title, configuration));
 }
Exemple #2
0
 public Task AlertAsync(
     string message,
     string title,
     string acknowledgementText,
     MaterialAlertDialogConfiguration configuration = null)
 {
     return(MaterialAlertDialog.AlertAsync(message, title, acknowledgementText, configuration));
 }
Exemple #3
0
 public Task <bool?> ConfirmAsync(
     string message,
     string title          = null,
     string confirmingText = "Ok",
     string dismissiveText = "Cancel",
     MaterialAlertDialogConfiguration configuration = null)
 {
     return(MaterialAlertDialog.ConfirmAsync(message, title, confirmingText, dismissiveText, configuration));
 }
Exemple #4
0
        internal static async Task <bool?> ConfirmAsync(string message, string title, string confirmingText, string dismissiveText = "Cancel", MaterialAlertDialogConfiguration configuration = null)
        {
            var dialog = new MaterialAlertDialog(message, title, confirmingText, dismissiveText, configuration)
            {
                InputTaskCompletionSource = new TaskCompletionSource <bool?>()
            };

            await dialog.ShowAsync();

            return(await dialog.InputTaskCompletionSource.Task);
        }
Exemple #5
0
 internal static async Task AlertAsync(string message, string title, string acknowledgementText = "Ok", MaterialAlertDialogConfiguration configuration = null)
 {
     var dialog = new MaterialAlertDialog(message, title, acknowledgementText, null, configuration: configuration);
     await dialog.ShowAsync();
 }
Exemple #6
0
 internal static async Task AlertAsync(string message, string title = null, MaterialAlertDialogConfiguration configuration = null)
 {
     var dialog = new MaterialAlertDialog(message, title, "OK", null, configuration: configuration);
     await dialog.ShowAsync();
 }