protected override void OnCurrentProfileChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
        {
            base.OnCurrentProfileChanged(sender, propertyChangedEventArgs);

            ParameterTokenViewModel.RaiseTextChanged();
            ScriptFileTokenViewModel.RaiseTextChanged();
            TokenTextChanged(this, EventArgs.Empty);
        }
        private void BrowseScriptExecute(object obj)
        {
            var title  = Translator.GetTranslation("ScriptActionSettings", "SelectScriptTitle");
            var filter = Translator.GetTranslation("ScriptActionSettings", "ExecutableFiles")
                         + @" (*.exe, *.bat, *.cmd)|*.exe;*.bat;*.cmd|"
                         + Translator.GetTranslation("ScriptActionSettings", "AllFiles")
                         + @"(*.*)|*.*";

            var result = _openFileInteractionHelper.StartOpenFileInteraction(CurrentProfile.Scripting.ScriptFile, title, filter);

            ScriptFileTokenViewModel.Text = result;
            ScriptFileTokenViewModel.RaiseTextChanged();
        }
        private Option <string> SelectScriptFileAction(string s1)
        {
            var title  = Translation.SelectScriptTitle;
            var filter = Translation.ExecutableFiles
                         + @" (*.exe, *.bat, *.cmd)|*.exe;*.bat;*.cmd|"
                         + Translation.AllFiles
                         + @"(*.*)|*.*";

            var interactionResult = _openFileInteractionHelper.StartOpenFileInteraction(CurrentProfile.Scripting.ScriptFile, title, filter);

            interactionResult.MatchSome(s =>
            {
                ScriptFileTokenViewModel.Text = s;
                ScriptFileTokenViewModel.RaiseTextChanged();
            });

            return(interactionResult);
        }
 protected override void HandleCurrentProfileChanged()
 {
     ParameterTokenViewModel.RaiseTextChanged();
     ScriptFileTokenViewModel.RaiseTextChanged();
 }