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

# Line 22 | Line 22 | namespace RomCheater
22      public partial class Main : Form
23      {
24          private bool m_bSaveLayout = true;
25 <        private Process Proc = new Process();
25 >        private Process SelectedProcess = null;
26          private DeserializeDockContent m_deserializeDockContent;
27          private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
28          private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
# Line 48 | Line 48 | namespace RomCheater
48  
49          private void OnProcessChanged(object sender, ProcessChangedEventArgs e)
50          {
51 <            Proc = Process.GetProcessById(e.ProcessID);
51 >            SelectedProcess = Process.GetProcessById(e.ProcessID);
52 >            m_RamDump.AcceptedProcess = SelectedProcess;
53          }
54  
55          #region Dock Support
# Line 102 | Line 103 | namespace RomCheater
103          }
104          public void ShowRamDump()
105          {
106 +            m_RamDump = new FloatingRamDumperDialog(ConfigPlugin);
107              m_RamDump.Show(dockPanel);
108 +            
109          }
110          public void ShowPidSelector()
111          {
# Line 150 | Line 153 | namespace RomCheater
153              if (WindowPlugin != null)
154                  logger.Info.WriteLine("Loaded Window Plugin: {0}", WindowPlugin.ToString());
155  
156 <            m_PIDSelector.ConfigPlugin = ConfigPlugin;
156 >            m_PIDSelector.AcceptedPlugin = ConfigPlugin;
157 >            m_RamDump.AcceptedPlugin = ConfigPlugin;
158 >            if (this.SelectedProcess != null)
159 >                m_RamDump.AcceptedProcess = SelectedProcess;
160  
161          }
162  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines