/[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:05:18	147
+++ trunk/RomCheater/Main.cs	2012/05/27 23:33:54	148
@@ -23,6 +23,8 @@
         private DeserializeDockContent m_deserializeDockContent;
         private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
         private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
+        private FloatingRamDumperDialog m_RamDump = new FloatingRamDumperDialog();
+        private PIDSelector m_PIDSelector = new PIDSelector();
         //private bool log_window_expanded = false;
         //private double log_window_splitter_default_position = 1.4045;
         PluginLoader loader = null;
@@ -48,6 +50,14 @@
             {
                 return m_LogWindow;
             }
+            if (persistString == typeof(FloatingAboutBox).ToString())
+            {
+                return m_AboutBox;
+            }
+            if (persistString == typeof(FloatingRamDumperDialog).ToString())
+            {
+                return m_RamDump;
+            }
             else
             {
                 // not sure if this is appropriate
@@ -57,13 +67,16 @@
         public void SetupDocks()
         {
             m_LogWindow = new FloatingLogWindow();
-
             m_AboutBox = new FloatingAboutBox();
+            m_RamDump = new FloatingRamDumperDialog();
+            m_PIDSelector = new PIDSelector();
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         public void ShowDocks()
         {
             ShowLogWindow();
+            ShowRamDump();
+            ShowPidSelector();
         }
         public void ShowLogWindow()
         {           
@@ -71,7 +84,17 @@
         }
         public void ShowAboutBox()
         {
-            m_AboutBox.Show(dockPanel);
+            m_AboutBox.ShowDialog();
+        }
+        public void ShowRamDump()
+        {
+            m_RamDump.Show(dockPanel);
+        }
+        public void ShowPidSelector()
+        {
+            //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
+            m_PIDSelector = new PIDSelector(ConfigPlugin);
+            m_PIDSelector.Show(dockPanel);
         }
         #endregion
 
@@ -139,9 +162,9 @@
 
         private void mnuItemOpenProcess_Click(object sender, EventArgs e)
         {
-            //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
-            PIDSelector selector = new PIDSelector(ConfigPlugin);
-            selector.ShowDialog();
+            ////List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
+            //PIDSelector selector = new PIDSelector(ConfigPlugin);
+            //selector.ShowDialog();
         }
 
         private void Main_Shown(object sender, EventArgs e)
@@ -158,5 +181,15 @@
         {
             ShowAboutBox();
         }
+
+        private void mnuItemShowRamDumpDialog_Click(object sender, EventArgs e)
+        {
+            ShowRamDump();
+        }
+
+        private void mnuItemShowPIDSelector_Click(object sender, EventArgs e)
+        {
+            ShowPidSelector();
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22