/[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	2012/06/05 23:20:12	322
+++ trunk/RomCheater/Main.cs	2012/06/07 16:33:41	323
@@ -75,8 +75,14 @@
 
             m_peviewer.AcceptedPlugin = this.ConfigPlugin;
             m_peviewer.AcceptedProcess = SelectedProcess;
+            m_peviewer.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
 
         }
+
+        void OnPEDataUpdated(PEViewerDataUpdatedEvent e)
+        {
+            m_memoryview.SetPEViewerData(e.PEData);
+        }
         private void OnBrowseMemoryRegion(BrowseMemoryRegionEvent e)
         {
             m_memoryview.BrowseMemoryRegion(e.MemoryRegion);
@@ -130,6 +136,7 @@
             m_memsearcher = new FloatingMemorySearcher();
             m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
             m_peviewer = new FloatingPEViewer();
+            m_peviewer.OnPEDataUpdated+=new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         #region SetupDockWindowHandler support
@@ -263,6 +270,7 @@
             load_plugins();
             m_peviewer = new FloatingPEViewer(ConfigPlugin);
             m_peviewer.AcceptedProcess = SelectedProcess;
+            m_peviewer.OnPEDataUpdated +=new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
             m_peviewer.Show(dockPanel);
         }
        

 

  ViewVC Help
Powered by ViewVC 1.1.22