Exemplo n.º 1
0
        private void chooseProcessButton_Click(object sender, EventArgs e)
        {
            var processChooseDialog = new ProcessChooseDialog();

            processChooseDialog.ShowDialog();
            process = processChooseDialog.SelectedProcess;
            processNameTextBox.Text   = process.Name;
            startStopButton.Enabled   = true;
            startStopButton.BackColor = System.Drawing.Color.LightGreen;
        }
Exemplo n.º 2
0
        private void chooseProcessButton_Click(object sender, EventArgs e)
        {
            var processChooseDialog = new ProcessChooseDialog();

            processChooseDialog.ShowDialog();
            process = processChooseDialog.SelectedProcess;
            if (process == null)
            {
                return;
            }
            processNameTextBox.Text = process.Name;
            RefreshGrid();
        }