Exemplo n.º 1
0
 public static async Task DisplayActionSheetEx(this ICrossDialogProvider dialoger, string title,
                                               ICommand executeCommand, string destruction, params string[] buttons)
 {
     await dialoger.DisplayActionSheetEx(title, "Dismiss",
                                         destruction : destruction,
                                         executeCommand, buttons);
 }
Exemplo n.º 2
0
 public static async Task DisplayAlert(this ICrossDialogProvider dialoger, string message,
                                       Action <object> actionAccept, object actionAcceptParam = null)
 {
     await dialoger.DisplayAlertEx(title : "Alert", message : message,
                                   accept : "OK", actionAccept : actionAccept,
                                   actionAcceptParam : actionAcceptParam);
 }
Exemplo n.º 3
0
 public static async Task DisplayAlertEx(this ICrossDialogProvider dialoger, string message,
                                         Action <object> actionAccept, Action <object> actionCancel = null)
 {
     await dialoger.DisplayAlertEx(title : "Alert", message : message,
                                   accept : "OK",
                                   cancel : "Cancel", actionAccept : actionAccept,
                                   actionCancel : actionCancel);
 }
Exemplo n.º 4
0
 public static async Task DisplayAlertEx(this ICrossDialogProvider dialoger, string message, Task taskAccept)
 {
     await dialoger.DisplayAlertEx(title : "Alert", message : message,
                                   accept : "OK",
                                   commandAccept : ReactiveCommand.CreateFromTask(async() => await taskAccept));
 }
Exemplo n.º 5
0
 public static async Task DisplayAlertEx(this ICrossDialogProvider dialoger, string message,
                                         ICommand commandAccept)
 {
     await dialoger.DisplayAlertEx(title : "Alert", message : message,
                                   accept : "OK", commandAccept : commandAccept);
 }
Exemplo n.º 6
0
 public static async Task DisplayAlert(this ICrossDialogProvider dialoger, string message)
 {
     await dialoger.DisplayAlert(title : "Alert", message : message,
                                 cancel : "Dismiss");
 }