private void button1_Click(object sender, EventArgs e) { Process p = Process.GetProcessById((int)nudProcessID.Value); SelectedProcessID = p.Id; ProcessName = p.ProcessName; if (SelectModule) { using (formModuleSelect mod = new formModuleSelect(p)) { if (mod.ShowDialog() != DialogResult.OK) return; SelectedModule = mod.SelectedProcessModule; } } this.DialogResult = DialogResult.OK; }
private void button1_Click(object sender, EventArgs e) { Process p = Process.GetProcessById((int)nudProcessID.Value); SelectedProcessID = p.Id; ProcessName = p.ProcessName; if (SelectModule) { using (formModuleSelect mod = new formModuleSelect(p)) { if (mod.ShowDialog() != DialogResult.OK) { return; } SelectedModule = mod.SelectedProcessModule; } } this.DialogResult = DialogResult.OK; }