/[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/06/02 10:53:33	217
+++ trunk/RomCheater/Main.cs	2012/06/02 11:02:38	218
@@ -32,6 +32,7 @@
         private FloatingRamDumperDialog m_RamDump = new FloatingRamDumperDialog();
         private PIDSelector m_PIDSelector = new PIDSelector();
         private FloatingMemoryView m_memoryview = new FloatingMemoryView();
+        private FloatingDataTypeConverter m_typeconverter = new FloatingDataTypeConverter();
         //private bool log_window_expanded = false;
         //private double log_window_splitter_default_position = 1.4045;
         PluginLoader loader = null;
@@ -83,6 +84,10 @@
             {
                 return m_memoryview;
             }
+            if (persistString == typeof(FloatingDataTypeConverter).ToString())
+            {
+                return m_typeconverter;
+            }
             else
             {
                 // not sure if this is appropriate
@@ -97,6 +102,7 @@
             m_PIDSelector = new PIDSelector();
             m_PIDSelector.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(OnProcessChanged);
             m_memoryview = new FloatingMemoryView();
+            m_typeconverter = new FloatingDataTypeConverter();
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         public void ShowDocks()
@@ -106,34 +112,45 @@
             ShowRamDump();
             ShowMemoryView();
             ShowPidSelector();
+            ShowDataTypeConverter();
         }
         public void ShowLogWindow()
-        {           
+        {
+            if (m_LogWindow == null || m_LogWindow.IsDisposed) { m_LogWindow = new FloatingLogWindow(); }
             m_LogWindow.Show(dockPanel, DockState.DockBottom);
         }
         public void ShowAboutBox()
         {
+            if (m_AboutBox == null || m_AboutBox.IsDisposed) { m_AboutBox = new FloatingAboutBox(); }
             m_AboutBox.ShowDialog();
         }
         public void ShowRamDump()
         {
+            load_plugins();
             m_RamDump = new FloatingRamDumperDialog(ConfigPlugin);
             m_RamDump.AcceptedProcess = SelectedProcess;
             m_RamDump.Show(dockPanel);            
         }
         public void ShowMemoryView()
         {
+            load_plugins();
             m_memoryview = new FloatingMemoryView(ConfigPlugin);
             m_memoryview.AcceptedProcess = SelectedProcess;
             m_memoryview.Show(dockPanel);
         }
         public void ShowPidSelector()
         {
+            load_plugins();
             //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
             m_PIDSelector = new PIDSelector(ConfigPlugin);
             m_PIDSelector.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(OnProcessChanged);
             m_PIDSelector.Show(dockPanel);
         }
+        public void ShowDataTypeConverter()
+        {
+            if (m_typeconverter == null || m_typeconverter.IsDisposed) { m_typeconverter = new FloatingDataTypeConverter(); }
+            m_typeconverter.Show(dockPanel, DockState.DockRightAutoHide);
+        }
         #endregion
 
 
@@ -293,6 +310,11 @@
             ulong value = Convert.ToUInt64(end.ToString(), 16);
             //}
         }
+
+        private void mnuItemShowDataTypeConverter_Click(object sender, EventArgs e)
+        {
+            ShowDataTypeConverter();
+        }
         
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22