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

Diff of /trunk/RomCheater/Main.cs

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

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

Legend:
Removed from v.152  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.22