Beispiel #1
0
        public async Task <bool> ShowDialogConfirmationAsync(string title, string message, string cancel, string ok)
        {
            taskCompletionSource = new TaskCompletionSource <bool>();
            task = taskCompletionSource.Task;

            AlertDialogPopup alertDialog = new AlertDialogPopup(title, message, cancel, ok, Callback);
            await Application.Current.MainPage.Navigation.PushPopupAsync(alertDialog);

            return(await task);
        }
Beispiel #2
0
        public async Task ShowDialogAsync(string title, string message, string close)
        {
            taskCompletionSource = new TaskCompletionSource <bool>();
            task = taskCompletionSource.Task;

            AlertDialogPopup alertDialog = new AlertDialogPopup(title, message, null, close, Callback);
            await Application.Current.MainPage.Navigation.PushPopupAsync(alertDialog);

            await task;
        }