Exemplo n.º 1
0
        async Task <RecoveryOptionResult> NotConnectedDialog(NotConnectedUserError notConnectedUserError)
        {
            string action = null; // toDO;
            await _specialDialogManager.ShowPopup(new RequirementsPopupViewModel(UiTaskHandlerExtensions.ToCommand(
                                                                                     () => Cheat.PublishEvent(new DoLogin()))) {
                DisplayName  = "Action '" + action + "' requires connection",
                Message      = "Please connect first to perform this action",
                CommandTitle = "Connect"
            });

            // TODO: Connect and retry options
            return(RecoveryOptionResult.CancelOperation);
        }
Exemplo n.º 2
0
 public Task ShowAddRepository() => _specialDialogManager.ShowPopup(_factory.CreateAddRepository().Value);