/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

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

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/18 10:51:47	715
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/18 10:59:36	716
@@ -107,12 +107,24 @@
         {
             m_LogWindow = new FloatingLogWindow();
             m_wb = new FloatingWebBrowser();
+            m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
         #region SetupDockWindowHandler support
         public void SetupDockWindowHandler()
         {
             SetupLogWindowHandler();
             SetupWebBrowserWindowHandler();
+            SetupPluginWindowHandlers();
+        }
+        private void SetupPluginWindowHandlers()
+        {
+            //if (RVACalcPlugin != null)
+            //{
+                
+            //}
+            //if (ScratchPadPlugin != null)
+            //{
+            //}
         }
         private void SetupLogWindowHandler()
         {
@@ -126,7 +138,7 @@
             if (m_wb == null) return;
             //m_wb.Shown += new EventHandler(AddDockToWindowList);
             //m_wb.FormClosed += new FormClosedEventHandler(RemoveDockFromWindowList);
-            //m_wb.Activate();
+            m_wb.Activate();
         }
         #endregion
         public void ShowDocks()
@@ -135,6 +147,8 @@
             SetupLogWindowHandler();
             ShowWebBrowser();
             SetupWebBrowserWindowHandler();
+            ShowPluginWindows();
+            SetupPluginWindowHandlers();
         }
         public void ShowLogWindow()
         {
@@ -155,6 +169,13 @@
             m_wb.CloseButtonVisible = false;
             m_wb.Show(dockPanel);
         }
+        public void ShowPluginWindows()
+        {
+            // RVA Calc
+            RVACalcPlugin.Show(dockPanel);
+            // ScratchPad
+            ScratchPadPlugin.Show(dockPanel);
+        }
         #endregion
 
         private void Form1_FormClosing(object sender, FormClosingEventArgs e)

 

  ViewVC Help
Powered by ViewVC 1.1.22