ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs
(Generate patch)

Comparing trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs (file contents):
Revision 683 by william, Mon Jun 17 08:33:06 2013 UTC vs.
Revision 684 by william, Mon Jun 17 08:52:54 2013 UTC

--- 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.Text;
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
 using RomCheater.PluginFramework.Core;
+using RomCheater.Logging;
 
 namespace RomCheater.CheatPlugin
 {
@@ -31,7 +32,27 @@ namespace RomCheater.CheatPlugin
         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!");
+        }
     }
 }