/[pcsx2_0.9.7]/trunk/tools/GSDumpGUI/Forms/frmMain.cs
ViewVC logotype

Diff of /trunk/tools/GSDumpGUI/Forms/frmMain.cs

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

--- trunk/tools/GSDumpGUI/Forms/frmMain.cs	2010/12/25 02:47:42	289
+++ trunk/tools/GSDumpGUI/Forms/frmMain.cs	2010/12/25 02:51:30	290
@@ -328,20 +328,6 @@
             if (e.KeyCode == Keys.F1)
                 cmdConfigGSDX_Click(sender, e);
 
-            if ((e.KeyCode == Keys.Down))
-            {
-                e.Handled = true;
-                if (lstDumps.Items.Count > lstDumps.SelectedIndex + 1)
-                    lstDumps.SelectedIndex++;
-            }
-
-            if ((e.KeyCode == Keys.Up))
-            {
-                e.Handled = true;
-                if (lstDumps.SelectedIndex > 0)
-                    lstDumps.SelectedIndex--;
-            }
-
             if ((e.KeyCode == Keys.F2))
                 SelectedRad++;
         }
@@ -442,5 +428,17 @@
             msg.MessageType = MessageType.RunToNextVSync;
             Program.Clients.Find(a => a.IPAddress == lstProcesses.SelectedItem.ToString()).Send(msg);
         }
+
+        private void treTreeView_AfterSelect(object sender, TreeViewEventArgs e)
+        {
+            if (treTreeView.SelectedNode != null)
+            {
+                TCPMessage msg = new TCPMessage();
+                msg.MessageType = MessageType.PacketInfo;
+                msg.Parameters.Add(Convert.ToInt32(treTreeView.SelectedNode.Text.Split(new string[] { " - " }, StringSplitOptions.None)[0]));
+                Program.Clients.Find(a => a.IPAddress == lstProcesses.SelectedItem.ToString()).Send(msg);
+            }
+            treTreeView.SelectedNode = e.Node;
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22