/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

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

--- trunk/RomCheater/Main.cs	2013/06/03 05:48:41	470
+++ trunk/RomCheater/Main.cs	2013/06/03 07:13:44	471
@@ -39,7 +39,7 @@
     public partial class Main : Form
     {
         private bool m_bSaveLayout = true;
-        private Process SelectedProcess = null;        
+        private int SelectedProcess = 0;        
         private DeserializeDockContent m_deserializeDockContent;
         private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
         private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
@@ -81,19 +81,19 @@
                 m_memsearcher = null; //free memory used by the memory searcher
                 m_memsearcher = new FloatingMemorySearcher();
             }
-            SelectedProcess = Process.GetProcessById(e.ProcessID);
+            SelectedProcess = e.ProcessID;
             m_RamDump.AcceptedPlugin = this.ConfigPlugin;
-            m_RamDump.AcceptedProcess = SelectedProcess;
+            m_RamDump.ProcessPID = SelectedProcess;
 
             m_peviewer.AcceptedPlugin = this.ConfigPlugin;
-            m_peviewer.AcceptedProcess = SelectedProcess;
+            m_peviewer.ProcessPID = SelectedProcess;
             m_peviewer.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(OnPEDataUpdated);
 
             m_memoryview.AcceptedPlugin = this.ConfigPlugin;
-            m_memoryview.AcceptedProcess = SelectedProcess;
+            m_memoryview.ProcessPID = SelectedProcess;
 
             m_memsearcher.AcceptedPlugin = this.ConfigPlugin;
-            m_memsearcher.AcceptedProcess = SelectedProcess;
+            m_memsearcher.ProcessPID = SelectedProcess;
             m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
 
         }
@@ -289,14 +289,14 @@
         {
             load_plugins_silent();
             m_RamDump = new FloatingRamDumperDialog(ConfigPlugin);
-            m_RamDump.AcceptedProcess = SelectedProcess;
+            m_RamDump.ProcessPID = SelectedProcess;
             m_RamDump.Show(dockPanel);
         }       
         public void ShowMemoryView()
         {
             load_plugins_silent();
             m_memoryview = new FloatingMemoryView(ConfigPlugin);
-            m_memoryview.AcceptedProcess = SelectedProcess;
+            m_memoryview.ProcessPID = SelectedProcess;
             m_memoryview.Show(dockPanel);
         }
         public void ShowPidSelector()
@@ -316,7 +316,7 @@
         {
             load_plugins_silent();
             m_memsearcher = new FloatingMemorySearcher(ConfigPlugin);
-            m_memsearcher.AcceptedProcess = SelectedProcess;
+            m_memsearcher.ProcessPID = SelectedProcess;
             m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
             m_memsearcher.Show(dockPanel);
         }
@@ -324,7 +324,7 @@
         {
             load_plugins_silent();
             m_peviewer = new FloatingPEViewer(ConfigPlugin);
-            m_peviewer.AcceptedProcess = SelectedProcess;
+            m_peviewer.ProcessPID = SelectedProcess;
             m_peviewer.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(OnPEDataUpdated);
             m_peviewer.Show(dockPanel);
         }
@@ -332,7 +332,7 @@
         {
             load_plugins_silent();
             m_rvacalc = new FloatingRVACalculator(ConfigPlugin);
-            m_rvacalc.AcceptedProcess = SelectedProcess;
+            m_rvacalc.ProcessPID = SelectedProcess;
             m_rvacalc.Show(dockPanel, DockState.DockRightAutoHide);
         }
         public void ShowUserControlDock()
@@ -406,11 +406,11 @@
             m_memoryview.AcceptedPlugin = ConfigPlugin;
             m_memsearcher.AcceptedPlugin = ConfigPlugin;
             m_PIDSelector.AcceptedPlugin = ConfigPlugin;
-            if (this.SelectedProcess != null)
+            if (this.SelectedProcess != 0)
             {
-                m_RamDump.AcceptedProcess = SelectedProcess;
-                 m_memoryview.AcceptedProcess = SelectedProcess;
-                 m_memsearcher.AcceptedProcess = SelectedProcess;
+                m_RamDump.ProcessPID = SelectedProcess;
+                m_memoryview.ProcessPID = SelectedProcess;
+                m_memsearcher.ProcessPID = SelectedProcess;
             }
 
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22