Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            ProcList plist = new ProcList(null);

            plist.ShowDialog();
            procBox.Text = plist.proc;
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ProcList pWnd = new ProcList(this);

            if (pWnd.ShowDialog() == DialogResult.OK)
            {
                SelectedProcess = pWnd.SelectedProcess;
                WaitForProcess  = pWnd.WaitFor;
            }
        }