/[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

revision 683 by william, Mon Jun 17 08:33:06 2013 UTC revision 689 by william, Mon Jun 17 10:02:53 2013 UTC
# Line 1  Line 1 
1  ´╗┐using System;  ´╗┐#region Logging Defines
2    // include this any class or method that required logging, and comment-out what is not needed
3    
4    #region Enabled logging levels
5    #define LOGGING_ENABLE_INFO
6    #define LOGGING_ENABLE_WARN
7    #define LOGGING_ENABLE_DEBUG
8    //#define LOGGING_ENABLE_VERBOSEDEBUG
9    #define LOGGING_ENABLE_ERROR
10    #define LOGGING_ENABLE_VERBOSEERROR
11    #define LOGGING_ENABLE_PROFILER
12    #endregion
13    #endregion
14    using System;
15  using System.Collections.Generic;  using System.Collections.Generic;
16  using System.ComponentModel;  using System.ComponentModel;
17  using System.Data;  using System.Data;
# Line 8  using System.Text; Line 21  using System.Text;
21  using System.Windows.Forms;  using System.Windows.Forms;
22  using WeifenLuo.WinFormsUI.Docking;  using WeifenLuo.WinFormsUI.Docking;
23  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
24    using RomCheater.Logging;
25    using RomCheater.Core;
26    
27  namespace RomCheater.EmuMMAPPlugin  namespace RomCheater.EmuMMAPPlugin
28  {  {
# Line 19  namespace RomCheater.EmuMMAPPlugin Line 34  namespace RomCheater.EmuMMAPPlugin
34          public EmuMEMMapDockControl(UserControlPlugin plugin)          public EmuMEMMapDockControl(UserControlPlugin plugin)
35          {          {
36              this.plugin = plugin;              this.plugin = plugin;
37                InitPluginFramework();
38              InitializeComponent();              InitializeComponent();
39              CreateMaps();              CreateMaps();
40          }          }
41            private void InitPluginFramework()
42            {
43                if (this.plugin == null) { return; }
44                this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
45                this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
46                this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
47                RaisePluginFrameworkEvents();
48            }
49    
50            bool EventsRaised = false;
51            private void RaisePluginFrameworkEvents()
52            {
53    
54                if (this.plugin == null) { EventsRaised = true; return; }
55                if (!EventsRaised)
56                {
57                    this.plugin.RaisePluginFrameworkEvents();
58                    EventsRaised = true;
59                }
60            }
61            void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
62            {
63                logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
64            }
65            void plugin_OnSelectedConfigChanged(ConfigChangedEventArgs e)
66            {
67                logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
68            }
69            void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
70            {
71                logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
72            }
73          private void EmuMEMMapDockControl_Shown(object sender, EventArgs e)          private void EmuMEMMapDockControl_Shown(object sender, EventArgs e)
74          {          {
75              txtDeviceMap.Clear();              txtDeviceMap.Clear();

Legend:
Removed from v.683  
changed lines
  Added in v.689

  ViewVC Help
Powered by ViewVC 1.1.22