Esempio n. 1
0
        public frmPickProcess(IFormOptions proccessOpts)
        {
            opts = proccessOpts as PickProcessOptions;
            this.InitializeComponent();
            this.CenterToParent();
            this.cboProcessName.Text = this.name = opts.pName;

            // add running processes to process list
            foreach (Process thisProc in Process.GetProcesses())
                this.cboProcessName.Items.Add(thisProc.ProcessName);
        }
 public override IFormOptions setupOptions()
 {
     PickProcessOptions picker = new PickProcessOptions(name);
     return picker;
 }