public OptionsControl()
        {
            InitializeComponent();
            string registryMasterKey = Registry.CurrentUser.Name + "\\Software\\SSMScripter";

            _scripterConfigStorage = new ScripterConfigRegistryStorage(registryMasterKey);
            _runConfigStorage      = new RunConfigRegistryStorage(registryMasterKey);
        }
        public ScriptAction(IHostContext hostCtx, IScripter scripter, IScripterParser parser, IScripterConfigStorage configStorage)
        {
            if (hostCtx == null)
            {
                throw new ArgumentNullException("hostCtx");
            }
            if (scripter == null)
            {
                throw new ArgumentNullException("scripter");
            }
            if (parser == null)
            {
                throw new ArgumentNullException("parser");
            }

            _hostCtx       = hostCtx;
            _scripter      = scripter;
            _parser        = parser;
            _configStorage = configStorage;
        }