Пример #1
0
        public Form1()
        {
            InitializeComponent();
            FormClosing   += new FormClosingEventHandler(Form1_FormClosing);
            _configuration = new BindingList <IPConfiguration>();

            _configuration.Clear();
            foreach (var s in Properties.Settings.Default.ConfigurationStrings)
            {
                var cmd = new CmdLineHelper();
                cmd.ParseString(s);
                var config = new IPConfiguration();
                config.Configure(cmd);
                _configuration.Add(config);
            }
            UpdateContextMenu();
        }
Пример #2
0
        public PyProcessContext CreateSpawnedProcess(string command,
                                                     string commandArguments,
                                                     string workingDirectory,
                                                     dynamic processHandler)
        {
            if (workingDirectory == null)
            {
                workingDirectory = _workingDirectory;
            }
            var cmd = new CmdLineHelper();

            cmd.ParseString(commandArguments);
            return(new PyProcessContext(_scriptContext,
                                        processHandler,
                                        this._processFactory,
                                        command,
                                        commandArguments,
                                        workingDirectory,
                                        cmd));
        }