public Task <Answer> QuestionAsync(string title, string message) { var viewModel = _dialogBuilder .WithDialogType(DialogType.Question) .WithAnswers(Answer.Yes, Answer.No) .WithTitle(title) .WithContent(message) .Build(); return(_userInteraction.ShowModalAsync(viewModel) .Select(() => viewModel.SelectedAnswer, _scheduler.Dispatcher.TPL)); }
public Answer Question(string title, string message) { return(_dialogBuilder .WithDialogType(DialogType.Question) .WithAnswers(Answer.Yes, Answer.No) .WithTitle(title) .WithMessage(message) .Show()); }