Example #1
0
 public async Task <bool> ShowDialog(string text)
 {
     if (presenter != null)
     {
         return(await Task.Run(() => presenter.ShowDialog("Dang!", text)));
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public void Show()
 {
     _dialogPresenter.ShowDialog(this);
 }
        public async Task HandleFatal(Exception ex)
        {
            var dialog = new DialogViewModel <ExceptionDialogContentViewModel>(new ExceptionDialogContentViewModel(ex), new FatalDialogButtonViewModel(_closeAppAction));

            await _dialogPresenter.ShowDialog(dialog);
        }