/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

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

revision 292 by william, Tue Jun 5 10:26:59 2012 UTC revision 305 by william, Tue Jun 5 13:42:37 2012 UTC
# Line 49  namespace RomCheater.Docking Line 49  namespace RomCheater.Docking
49    
50          #region IAcceptsProcess<Process> Members          #region IAcceptsProcess<Process> Members
51          private Process _AcceptedProcess;          private Process _AcceptedProcess;
52          public Process AcceptedProcess { get { return _AcceptedProcess; } set { _AcceptedProcess = value; UpdateAcceptedProcessAndConfig(AcceptedPlugin, value); } }          public Process AcceptedProcess { get { return _AcceptedProcess; } set { _AcceptedProcess = value; UpdateAcceptedProcess(value); } }
53          #endregion          #endregion
54          #region IAcceptsPlugin<IConfigPlugin> Members          #region IAcceptsPlugin<IConfigPlugin> Members
55          private IConfigPlugin _AcceptedPlugin;          private IConfigPlugin _AcceptedPlugin;
56          public IConfigPlugin AcceptedPlugin { get { return _AcceptedPlugin; } set { _AcceptedPlugin = value; UpdateAcceptedProcessAndConfig(value, AcceptedProcess); } }          public IConfigPlugin AcceptedPlugin { get { return _AcceptedPlugin; } set { _AcceptedPlugin = value; UpdateAcceptedPlugin(value); } }
57          #endregion          #endregion
58          #region IAcceptsBrowseMemoryRegion members          #region IAcceptsBrowseMemoryRegion members
59          public event BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion;          public event BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion;
60          #endregion          #endregion
61    
62          private void UpdateAcceptedProcessAndConfig(IConfigPlugin config, Process process)          private void UpdateAcceptedPlugin(IConfigPlugin config)
63          {          {
64              this.lstResults.AcceptedPlugin = config;              this.lstResults.AcceptedPlugin = config;
             this.lstResults.AcceptedProcess = process;  
65              this.lstPatchList.AcceptedPlugin = config;              this.lstPatchList.AcceptedPlugin = config;
66            }
67            private void UpdateAcceptedProcess(Process process)
68            {            
69                this.lstResults.AcceptedProcess = process;            
70              this.lstPatchList.AcceptedProcess = process;              this.lstPatchList.AcceptedProcess = process;
   
71  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && FORCE_USE_OF_MEMORYSIZECONSTANTS  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && FORCE_USE_OF_MEMORYSIZECONSTANTS
72              logger.Warn.WriteLine("FloatingMemorySearcher.UpdateAcceptedProcessAndConfig(IConfigPlugin config, Process process):");              logger.Warn.WriteLine("FloatingMemorySearcher.UpdateAcceptedProcessAndConfig(IConfigPlugin config, Process process):");
73              logger.Warn.WriteLine("Both USE_AUTOMATIC_MEMORY_SEARCH_RANGE and FORCE_USE_OF_MEMORYSIZECONSTANTS are defined");              logger.Warn.WriteLine("Both USE_AUTOMATIC_MEMORY_SEARCH_RANGE and FORCE_USE_OF_MEMORYSIZECONSTANTS are defined");

Legend:
Removed from v.292  
changed lines
  Added in v.305

  ViewVC Help
Powered by ViewVC 1.1.22