Пример #1
0
        private void MessageInteractionCompleted(ProfileProblemsInteraction messageInteraction)
        {
            var responseStatus = messageInteraction.IgnoreProblems
                ? ResponseStatus.Success
                : ResponseStatus.Cancel;

            IsDone?.Invoke(this, new MacroCommandIsDoneEventArgs(responseStatus));
        }
Пример #2
0
        public void Execute(object parameter)
        {
            var profileCheckResult = _profileChecker.ProfileCheckDict(_currentSettingsProvider.Profiles, _currentSettingsProvider.Settings.ApplicationSettings.Accounts);

            if (!profileCheckResult)
            {
                var interaction = new ProfileProblemsInteraction(profileCheckResult);
                _interactionRequest.Raise(interaction, MessageInteractionCompleted);
            }
            else
            {
                IsDone?.Invoke(this, new MacroCommandIsDoneEventArgs(ResponseStatus.Success));
            }
        }