/[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

--- trunk/RomCheater/Docking/PIDSelector.cs	2012/06/05 10:48:35	295
+++ trunk/RomCheater/Docking/PIDSelector.cs	2012/06/05 10:52:57	296
@@ -72,13 +72,13 @@
         private void btnTile_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Tile; }
 
         private void PerformListViewItemSelect(ListViewItem li)
-        {
+        {            
             this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);
-            //this.Close();
-            if (OnSelectedProcessChanged != null)
-                OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
             Process SelectedProcess = Process.GetProcessById(this.ProcessPID);
             logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
+            //this.Close();
+            if (OnSelectedProcessChanged != null)
+                OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));           
         }
         private void btnOK_Click(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22