/[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/19 14:23:52	729
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/19 15:08:07	730
@@ -23,7 +23,7 @@
         IConfigPlugin ConfigPlugin = null;
 
         IUserControlPlugin RVACalcPlugin = null;
-        //IUserControlPlugin ScratchPadPlugin = null;
+        IUserControlPlugin ScratchPadPlugin = null;
 
         //private DeserializeDockContent m_deserializeDockContent;
         //private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
@@ -83,18 +83,18 @@
                 ConfigPlugin = loader.GetPluginByGuid<IConfigPlugin>(config.ID.ToString());
             }
 
-            //// update the Config plugin's reference to the webbrowswer
-            ////ConfigPlugin.WebBrowserProvider = this.WebBrowserProvider;
+            // update the Config plugin's reference to the webbrowswer
+            //ConfigPlugin.WebBrowserProvider = this.WebBrowserProvider;
 
             SettingsSubscriber.SetValue("LastConfigPlugin", ConfigPlugin.ToString());
 
-            //var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
+            var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
             var rvacalc = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);
-            //ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());
+            ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());
             RVACalcPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacalc.ID.ToString());
 
             // update config of each plugin
-            //ScratchPadPlugin.SetAcceptedConfig(ConfigPlugin);
+            ScratchPadPlugin.SetAcceptedConfig(ConfigPlugin);
             RVACalcPlugin.SetAcceptedConfig(ConfigPlugin);
         }
 
@@ -134,10 +134,10 @@
             {
                 RVACalcPlugin.Activate();
             }
-            //if (ScratchPadPlugin != null)
-            //{
-            //    ScratchPadPlugin.Activate();
-            //}
+            if (ScratchPadPlugin != null)
+            {
+                ScratchPadPlugin.Activate();
+            }
         }
         //private void SetupLogWindowHandler()
         //{
@@ -163,8 +163,8 @@
             ShowPluginWindows();
             SetupPluginWindowHandlers();
 
-            //if (RVACalcPlugin != null)
-            //    RVACalcPlugin.Activate();
+            if (RVACalcPlugin != null)
+                RVACalcPlugin.Activate();
         }
         public void ShowLogWindow()
         {
@@ -200,14 +200,14 @@
                 RVACalcPlugin.DockHandler.AllowEndUserDocking = false;
                 RVACalcPlugin.Show(dockPanel);
             }
-            //if (ScratchPadPlugin != null)
-            //{
-            //    // ScratchPad                
-            //    //ScratchPadPlugin.DockHandler.CloseButton = false;
-            //    //ScratchPadPlugin.DockHandler.CloseButtonVisible = false;
-            //    //ScratchPadPlugin.DockHandler.AllowEndUserDocking = true;
-            //    ScratchPadPlugin.Show(dockPanel, DockState.Document);
-            //}
+            if (ScratchPadPlugin != null)
+            {
+                // ScratchPad                
+                //ScratchPadPlugin.DockHandler.CloseButton = false;
+                //ScratchPadPlugin.DockHandler.CloseButtonVisible = false;
+                //ScratchPadPlugin.DockHandler.AllowEndUserDocking = true;
+                ScratchPadPlugin.Show(dockPanel, DockState.Document);
+            }
         }
         #endregion
 
@@ -253,8 +253,8 @@
             ShowDocks();
             //}
 
-            //if (RVACalcPlugin != null)
-            //    RVACalcPlugin.Activate();
+            if (RVACalcPlugin != null)
+                RVACalcPlugin.Activate();
             ////dockPanel.ResumeLayout(true, true);
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22