ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 152 by william, Mon May 28 02:01:34 2012 UTC vs.
Revision 153 by william, Mon May 28 02:20:29 2012 UTC

--- trunk/RomCheater/Main.cs	2012/05/28 02:01:34	152
+++ trunk/RomCheater/Main.cs	2012/05/28 02:20:29	153
@@ -22,7 +22,7 @@ namespace RomCheater
     public partial class Main : Form
     {
         private bool m_bSaveLayout = true;
-        private Process Proc = new Process();
+        private Process SelectedProcess = null;
         private DeserializeDockContent m_deserializeDockContent;
         private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
         private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
@@ -48,7 +48,8 @@ namespace RomCheater
 
         private void OnProcessChanged(object sender, ProcessChangedEventArgs e)
         {
-            Proc = Process.GetProcessById(e.ProcessID);
+            SelectedProcess = Process.GetProcessById(e.ProcessID);
+            m_RamDump.AcceptedProcess = SelectedProcess;
         }
 
         #region Dock Support
@@ -102,7 +103,9 @@ namespace RomCheater
         }
         public void ShowRamDump()
         {
+            m_RamDump = new FloatingRamDumperDialog(ConfigPlugin);
             m_RamDump.Show(dockPanel);
+            
         }
         public void ShowPidSelector()
         {
@@ -150,7 +153,10 @@ namespace RomCheater
             if (WindowPlugin != null)
                 logger.Info.WriteLine("Loaded Window Plugin: {0}", WindowPlugin.ToString());
 
-            m_PIDSelector.ConfigPlugin = ConfigPlugin;
+            m_PIDSelector.AcceptedPlugin = ConfigPlugin;
+            m_RamDump.AcceptedPlugin = ConfigPlugin;
+            if (this.SelectedProcess != null)
+                m_RamDump.AcceptedProcess = SelectedProcess;
 
         }