/[RomCheater]/trunk/RomCheater/Docking/PIDSelector.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/PIDSelector.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 287 by william, Tue Jun 5 08:52:07 2012 UTC revision 296 by william, Tue Jun 5 10:52:57 2012 UTC
# Line 72  namespace RomCheater.Docking Line 72  namespace RomCheater.Docking
72          private void btnTile_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Tile; }          private void btnTile_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Tile; }
73    
74          private void PerformListViewItemSelect(ListViewItem li)          private void PerformListViewItemSelect(ListViewItem li)
75          {          {            
76              this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);              this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);
             //this.Close();  
             if (OnSelectedProcessChanged != null)  
                 OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));  
77              Process SelectedProcess = Process.GetProcessById(this.ProcessPID);              Process SelectedProcess = Process.GetProcessById(this.ProcessPID);
78              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
79                //this.Close();
80                if (OnSelectedProcessChanged != null)
81                    OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));          
82          }          }
83          private void btnOK_Click(object sender, EventArgs e)          private void btnOK_Click(object sender, EventArgs e)
84          {          {

Legend:
Removed from v.287  
changed lines
  Added in v.296

  ViewVC Help
Powered by ViewVC 1.1.22