/[RomCheater]/trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs
ViewVC logotype

Diff of /trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs

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

--- trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs	2013/06/17 08:33:06	683
+++ trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs	2013/06/17 08:52:54	684
@@ -22,6 +22,7 @@
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
 using RomCheater.PluginFramework.Core;
+using RomCheater.Logging;
 
 namespace RomCheater.CheatPlugin
 {
@@ -31,7 +32,27 @@
         public CheatCodeDockContent(UserControlPlugin plugin)
         {
             this.plugin = plugin;
+            InitPluginFramework();
             InitializeComponent();
         }
+        private void InitPluginFramework()
+        {
+            if (this.plugin == null) { return; }
+            this.plugin.OnSelectedProcessChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
+            this.plugin.OnSelectedConfigChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
+            this.plugin.OnPEDataUpdated += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
+        }
+        void plugin_OnPEDataUpdated(PluginFramework.Events.PEViewerDataUpdatedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
+        }
+        void plugin_OnSelectedConfigChanged(PluginFramework.Events.ConfigChangedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
+        }
+        void plugin_OnSelectedProcessChanged(PluginFramework.Events.ProcessChangedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22