/[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/05/27 23:59:22	150
+++ trunk/RomCheater/Main.cs	2012/05/28 00:17:16	151
@@ -20,6 +20,7 @@
 {
     public partial class Main : Form
     {
+        private Process Proc = new Process();
         private DeserializeDockContent m_deserializeDockContent;
         private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
         private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
@@ -43,6 +44,11 @@
         #endregion
 
 
+        private void OnProcessChanged(object sender, ProcessChangedEventArgs e)
+        {
+            Proc = Process.GetProcessById(e.ProcessID);
+        }
+
         #region Dock Support
         private IDockContent GetContentFromPersistString(string persistString)
         {
@@ -70,6 +76,7 @@
             m_AboutBox = new FloatingAboutBox();
             m_RamDump = new FloatingRamDumperDialog();
             m_PIDSelector = new PIDSelector();
+            m_PIDSelector.OnSelectedProcessChanged += new EventHandler<ProcessChangedEventArgs>(OnProcessChanged);
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         public void ShowDocks()
@@ -94,6 +101,7 @@
         {
             //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
             m_PIDSelector = new PIDSelector(ConfigPlugin);
+            m_PIDSelector.OnSelectedProcessChanged += new EventHandler<ProcessChangedEventArgs>(OnProcessChanged);
             m_PIDSelector.Show(dockPanel);
         }
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22