/[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	2014/09/16 23:36:33	867
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2014/09/16 23:44:25	868
@@ -25,7 +25,7 @@
         PluginLoader loader = null;
         IConfigPlugin ConfigPlugin = null;
 
-        IUserControlPlugin RVACalcPlugin = null;
+        IUserControlPlugin RVACheatListPlugin = null;
         IUserControlPlugin ScratchPadPlugin = null;
 
         private LogLevel logging_level = LogLevel.kLogLevel_All;
@@ -96,7 +96,7 @@
             if (LastConfigPlugin != null)
             {
                 ConfigPlugin = loader.GetConfigPlugin(LastConfigPlugin.ToString());
-            }
+              }
             else
             {
                 var config = PluginCollection.GetPluginByName(PluginNames.GenericConfig);
@@ -109,13 +109,13 @@
             SettingsSubscriber.SetValue("LastConfigPlugin", ConfigPlugin.ToString());
 
             var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
-            var rvacalc = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);
+            var rvacheatlist = PluginCollection.GetPluginByName(PluginNames.RVACheatListPlugin);
             ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());
-            RVACalcPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacalc.ID.ToString());
+            RVACheatListPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacheatlist.ID.ToString());
 
             // update config of each plugin
             ScratchPadPlugin.SetAcceptedConfig(ConfigPlugin);
-            RVACalcPlugin.SetAcceptedConfig(ConfigPlugin);
+            RVACheatListPlugin.SetAcceptedConfig(ConfigPlugin);
         }
 
 
@@ -125,7 +125,7 @@
         {
             //if (persistString == typeof(FloatingLogWindow).ToString()) { return m_LogWindow; }
             //if (persistString == typeof(FloatingWebBrowser).ToString()) { return m_wb; }
-            if (RVACalcPlugin != null) { if (persistString == RVACalcPlugin.IDockContentTypeName) { return RVACalcPlugin.DockContent; } }
+            if (RVACheatListPlugin != null) { if (persistString == RVACheatListPlugin.IDockContentTypeName) { return RVACheatListPlugin.DockContent; } }
             if (ScratchPadPlugin != null) { if (persistString == ScratchPadPlugin.IDockContentTypeName) { return ScratchPadPlugin.DockContent; } }
             return null;
         }
@@ -139,11 +139,11 @@
             //m_wb.CloseButton = false;
             //m_wb.CloseButtonVisible = false;
 
-            if (RVACalcPlugin != null)
+            if (RVACheatListPlugin != null)
             {
-                RVACalcPlugin.DockHandler.CloseButton = false;
-                RVACalcPlugin.DockHandler.CloseButtonVisible = false;
-                RVACalcPlugin.DockHandler.AllowEndUserDocking = false;
+                RVACheatListPlugin.DockHandler.CloseButton = false;
+                RVACheatListPlugin.DockHandler.CloseButtonVisible = false;
+                RVACheatListPlugin.DockHandler.AllowEndUserDocking = false;
             }
             if (ScratchPadPlugin != null)
             {
@@ -163,12 +163,12 @@
         }
         private void SetupPluginWindowHandlers()
         {
-            if (RVACalcPlugin != null)
+            if (RVACheatListPlugin != null)
             {
-                RVACalcPlugin.DockHandler.CloseButton = false;
-                RVACalcPlugin.DockHandler.CloseButtonVisible = false;
-                RVACalcPlugin.DockHandler.AllowEndUserDocking = false;
-                RVACalcPlugin.Activate();
+                RVACheatListPlugin.DockHandler.CloseButton = false;
+                RVACheatListPlugin.DockHandler.CloseButtonVisible = false;
+                RVACheatListPlugin.DockHandler.AllowEndUserDocking = false;
+                RVACheatListPlugin.Activate();
             }
             if (ScratchPadPlugin != null)
             {
@@ -202,8 +202,8 @@
             ShowPluginWindows();
             SetupPluginWindowHandlers();
 
-            if (RVACalcPlugin != null)
-                RVACalcPlugin.Activate();
+            if (RVACheatListPlugin != null)
+                RVACheatListPlugin.Activate();
         }
         public void ShowLogWindow()
         {
@@ -231,13 +231,13 @@
         }
         public void ShowPluginWindows()
         {
-            if (RVACalcPlugin != null)
+            if (RVACheatListPlugin != null)
             {
                 // RVA Calc                
-                RVACalcPlugin.DockHandler.CloseButton = false;
-                RVACalcPlugin.DockHandler.CloseButtonVisible = false;
-                RVACalcPlugin.DockHandler.AllowEndUserDocking = false;
-                RVACalcPlugin.Show(dockPanel, DockState.DockLeft);
+                RVACheatListPlugin.DockHandler.CloseButton = false;
+                RVACheatListPlugin.DockHandler.CloseButtonVisible = false;
+                RVACheatListPlugin.DockHandler.AllowEndUserDocking = false;
+                RVACheatListPlugin.Show(dockPanel, DockState.DockLeft);
             }
             if (ScratchPadPlugin != null)
             {
@@ -292,8 +292,8 @@
                 ShowDocks();
             }
 
-            if (RVACalcPlugin != null)
-                RVACalcPlugin.Activate();
+            if (RVACheatListPlugin != null)
+                RVACheatListPlugin.Activate();
             dockPanel.ResumeLayout(true, true);
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22