コード例 #1
0
ファイル: frmPickProcess.cs プロジェクト: randomdude/Lavalamp
        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);
        }
コード例 #2
0
 public override IFormOptions setupOptions()
 {
     PickProcessOptions picker = new PickProcessOptions(name);
     return picker;
 }