Пример #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);
        }
Пример #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;
        }