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 226 by william, Sat Jun 2 11:02:38 2012 UTC vs.
Revision 227 by william, Sat Jun 2 15:48:25 2012 UTC

--- trunk/RomCheater/Main.cs	2012/06/02 14:54:17	226
+++ trunk/RomCheater/Main.cs	2012/06/02 15:48:25	227
@@ -33,6 +33,7 @@ namespace RomCheater
         private PIDSelector m_PIDSelector = new PIDSelector();
         private FloatingMemoryView m_memoryview = new FloatingMemoryView();
         private FloatingDataTypeConverter m_typeconverter = new FloatingDataTypeConverter();
+        private FloatingMemorySearcher m_memsearcher = new FloatingMemorySearcher();
         //private bool log_window_expanded = false;
         //private double log_window_splitter_default_position = 1.4045;
         PluginLoader loader = null;
@@ -59,6 +60,9 @@ namespace RomCheater
 
             m_memoryview.AcceptedProcess = SelectedProcess;
             m_memoryview.AcceptedPlugin = this.ConfigPlugin;
+
+            m_memsearcher.AcceptedProcess = SelectedProcess;
+            m_memsearcher.AcceptedPlugin = this.ConfigPlugin;
         }
 
         #region Dock Support
@@ -88,6 +92,10 @@ namespace RomCheater
             {
                 return m_typeconverter;
             }
+            if (persistString == typeof(FloatingMemorySearcher).ToString())
+            {
+                return m_memsearcher;
+            }
             else
             {
                 // not sure if this is appropriate
@@ -103,6 +111,7 @@ namespace RomCheater
             m_PIDSelector.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(OnProcessChanged);
             m_memoryview = new FloatingMemoryView();
             m_typeconverter = new FloatingDataTypeConverter();
+            m_memsearcher = new FloatingMemorySearcher();
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         public void ShowDocks()
@@ -113,6 +122,7 @@ namespace RomCheater
             ShowMemoryView();
             ShowPidSelector();
             ShowDataTypeConverter();
+            ShowMemorySearch();
         }
         public void ShowLogWindow()
         {
@@ -151,6 +161,13 @@ namespace RomCheater
             if (m_typeconverter == null || m_typeconverter.IsDisposed) { m_typeconverter = new FloatingDataTypeConverter(); }
             m_typeconverter.Show(dockPanel, DockState.DockRightAutoHide);
         }
+        public void ShowMemorySearch()
+        {
+            load_plugins();
+            m_memsearcher = new FloatingMemorySearcher(ConfigPlugin);
+            m_memsearcher.AcceptedProcess = SelectedProcess;
+            m_memsearcher.Show(dockPanel);
+        }
         #endregion
 
 
@@ -315,6 +332,11 @@ namespace RomCheater
         {
             ShowDataTypeConverter();
         }
+
+        private void mnuItemShowMemorySearch_Click(object sender, EventArgs e)
+        {
+            ShowMemorySearch();
+        }
         
     }
 }