/[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

revision 725 by william, Tue Jun 18 20:32:10 2013 UTC revision 726 by william, Tue Jun 18 20:37:57 2013 UTC
# Line 29  namespace RomCheater.RVAScratchPad Line 29  namespace RomCheater.RVAScratchPad
29          private FloatingLogWindow m_LogWindow = new FloatingLogWindow();          private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
30          private FloatingWebBrowser m_wb = new FloatingWebBrowser();          private FloatingWebBrowser m_wb = new FloatingWebBrowser();
31    
32            public IWebBrowserProvider WebBrowserProvider
33            {
34                get { return new WebBrowserProvider(m_wb); }
35            }
36          #region LogWriterSupport          #region LogWriterSupport
37          static LogWriter _LoggerInstance;          static LogWriter _LoggerInstance;
38          static LogWriter LoggerInstance          static LogWriter LoggerInstance
# Line 78  namespace RomCheater.RVAScratchPad Line 82  namespace RomCheater.RVAScratchPad
82                  ConfigPlugin = loader.GetPluginByGuid<IConfigPlugin>(config.ID.ToString());                  ConfigPlugin = loader.GetPluginByGuid<IConfigPlugin>(config.ID.ToString());
83              }              }
84    
85                // update the Config plugin's reference to the webbrowswer
86                ConfigPlugin.WebBrowserProvider = this.WebBrowserProvider;
87    
88              SettingsSubscriber.SetValue("LastConfigPlugin", ConfigPlugin.ToString());              SettingsSubscriber.SetValue("LastConfigPlugin", ConfigPlugin.ToString());
89    
90              var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);              var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
91              var rvacalc = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);                          var rvacalc = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);            
92              ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());              ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());
93              RVACalcPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacalc.ID.ToString());              RVACalcPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacalc.ID.ToString());
94    
95                // update config of each plugin
96                ScratchPadPlugin.SetAcceptedConfig(ConfigPlugin);
97                RVACalcPlugin.SetAcceptedConfig(ConfigPlugin);
98          }          }
99    
100    

Legend:
Removed from v.725  
changed lines
  Added in v.726

  ViewVC Help
Powered by ViewVC 1.1.22