protected override void ResolveInteractionResult(MessageInteraction interactionResult)
        {
            switch (interactionResult.Response)
            {
            case MessageResponse.Yes:
                RaiseIsDone(ResponseStatus.Success);
                return;

            case MessageResponse.No:
                _currentSettingsProvider.Reset();
                RaiseIsDone(ResponseStatus.Skip);
                return;

            case MessageResponse.Cancel:
            default:
                RaiseIsDone(ResponseStatus.Cancel);
                return;
            }
        }
Exemplo n.º 2
0
        private void ResolveInteractionResult(MessageInteraction interactionResult)
        {
            var macroResult = ResponseStatus.Success;

            switch (interactionResult.Response)
            {
            case MessageResponse.Yes:
                macroResult = ResponseStatus.Success;
                break;

            case MessageResponse.No:
                _currentSettingsProvider.Reset();
                macroResult = ResponseStatus.Skip;
                break;

            case MessageResponse.Cancel:
                macroResult = ResponseStatus.Cancel;
                break;
            }
            IsDone?.Invoke(this, new MacroCommandIsDoneEventArgs(macroResult));
        }
Exemplo n.º 3
0
 public void Execute(object parameter)
 {
     _currentSettingsProvider.Reset();
 }