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

# Line 22 | Line 22 | using System.Text;
22   using System.Windows.Forms;
23   using WeifenLuo.WinFormsUI.Docking;
24   using RomCheater.PluginFramework.Core;
25 + using RomCheater.Logging;
26  
27   namespace RomCheater.CheatPlugin
28   {
# Line 31 | Line 32 | namespace RomCheater.CheatPlugin
32          public CheatCodeDockContent(UserControlPlugin plugin)
33          {
34              this.plugin = plugin;
35 +            InitPluginFramework();
36              InitializeComponent();
37          }
38 +        private void InitPluginFramework()
39 +        {
40 +            if (this.plugin == null) { return; }
41 +            this.plugin.OnSelectedProcessChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
42 +            this.plugin.OnSelectedConfigChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
43 +            this.plugin.OnPEDataUpdated += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
44 +        }
45 +        void plugin_OnPEDataUpdated(PluginFramework.Events.PEViewerDataUpdatedEventArgs e)
46 +        {
47 +            logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
48 +        }
49 +        void plugin_OnSelectedConfigChanged(PluginFramework.Events.ConfigChangedEventArgs e)
50 +        {
51 +            logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
52 +        }
53 +        void plugin_OnSelectedProcessChanged(PluginFramework.Events.ProcessChangedEventArgs e)
54 +        {
55 +            logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
56 +        }
57      }
58   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines