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 322 by william, Tue Jun 5 17:57:37 2012 UTC vs.
Revision 323 by william, Thu Jun 7 16:33:41 2012 UTC

# Line 75 | Line 75 | namespace RomCheater
75  
76              m_peviewer.AcceptedPlugin = this.ConfigPlugin;
77              m_peviewer.AcceptedProcess = SelectedProcess;
78 +            m_peviewer.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
79  
80          }
81 +
82 +        void OnPEDataUpdated(PEViewerDataUpdatedEvent e)
83 +        {
84 +            m_memoryview.SetPEViewerData(e.PEData);
85 +        }
86          private void OnBrowseMemoryRegion(BrowseMemoryRegionEvent e)
87          {
88              m_memoryview.BrowseMemoryRegion(e.MemoryRegion);
# Line 130 | Line 136 | namespace RomCheater
136              m_memsearcher = new FloatingMemorySearcher();
137              m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
138              m_peviewer = new FloatingPEViewer();
139 +            m_peviewer.OnPEDataUpdated+=new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
140              m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
141          }
142          #region SetupDockWindowHandler support
# Line 263 | Line 270 | namespace RomCheater
270              load_plugins();
271              m_peviewer = new FloatingPEViewer(ConfigPlugin);
272              m_peviewer.AcceptedProcess = SelectedProcess;
273 +            m_peviewer.OnPEDataUpdated +=new BaseEventHandler<PEViewerDataUpdatedEvent>(OnPEDataUpdated);
274              m_peviewer.Show(dockPanel);
275          }
276        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines