コード例 #1
0
        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();
        }
コード例 #2
0
 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();
     }
 }