/[RomCheater]/trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs
ViewVC logotype

Diff of /trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs

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

--- trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/09 00:40:20	654
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/17 09:31:52	686
@@ -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
+
+#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;
@@ -7,18 +20,43 @@
 using System.Text;
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
+using RomCheater.PluginFramework.Core;
+using RomCheater.Logging;
+using RomCheater.Core;
 
 namespace RomCheater.EmuMMAPPlugin
 {
     #region EmuMEMMapDockControl
     public partial class EmuMEMMapDockControl : DockContent
     {
+        private UserControlPlugin plugin;
         private List<DeviceMemoryMap> DeviceMemoryMaps = new List<DeviceMemoryMap>();
-        public EmuMEMMapDockControl()
+        public EmuMEMMapDockControl(UserControlPlugin plugin)
         {
+            this.plugin = plugin;
+            InitPluginFramework();
             InitializeComponent();
             CreateMaps();
         }
+        private void InitPluginFramework()
+        {
+            if (this.plugin == null) { return; }
+            this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
+            this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
+            this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
+        }
+        void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
+        }
+        void plugin_OnSelectedConfigChanged(ConfigChangedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
+        }
+        void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
+        {
+            logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
+        }
         private void EmuMEMMapDockControl_Shown(object sender, EventArgs e)
         {
             txtDeviceMap.Clear();

 

  ViewVC Help
Powered by ViewVC 1.1.22