/[RomCheater]/trunk/RomCheater.PluginFramework/Core/ScratchPad.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/ScratchPad.cs

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

--- trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 08:33:06	683
+++ trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 08:52:54	684
@@ -1,4 +1,17 @@
-´╗┐using System;
+´╗┐#region Logging Defines
+// include this any class or method that required logging, and comment-out what is not needed
+#define LOGGING_ENABLED // this is only valid within the logger class
+#region Enabled logging levels
+#define LOGGING_ENABLE_INFO
+#define LOGGING_ENABLE_WARN
+#define LOGGING_ENABLE_DEBUG
+#define LOGGING_ENABLE_VERBOSEDEBUG
+#define LOGGING_ENABLE_ERROR
+#define LOGGING_ENABLE_VERBOSEERROR
+#define LOGGING_ENABLE_PROFILER
+#endregion
+#endregion
+using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -8,6 +21,7 @@
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
 using System.IO;
+using RomCheater.Logging;
 
 namespace RomCheater.PluginFramework.Core
 {
@@ -18,11 +32,33 @@
         public ScratchPad(UserControlPlugin plugin)
         {
             this.plugin = plugin;
+            InitPluginFramework();
             InitializeComponent();            
             this.PerformPreInit();
         }
 
 
+        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!");
+        }
+
+
         private void PerformPreInit()
         {
             txtScratchPad.Font = new System.Drawing.Font(txtScratchPad.Font, FontStyle.Italic);

 

  ViewVC Help
Powered by ViewVC 1.1.22