private void terminatorProcessMenuItem_Click(object sender, EventArgs e) { TerminatorWindow w = new TerminatorWindow(processSelectedPid); w.Text = "Terminator - " + processP.Dictionary[processSelectedPid].Name + " (PID " + processSelectedPid.ToString() + ")"; w.ShowDialog(); }
private void terminatorProcessMenuItem_Click(object sender, EventArgs e) { using (TerminatorWindow w = new TerminatorWindow(processSelectedPid) { Text = "Terminator - " + Program.ProcessProvider.Dictionary[this.processSelectedPid].Name + " (PID " + this.processSelectedPid.ToString() + ")" }) { w.ShowDialog(); } }