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

revision 683 by william, Mon Jun 17 08:33:06 2013 UTC revision 684 by william, Mon Jun 17 08:52:54 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    #define LOGGING_ENABLED // this is only valid within the logger class
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 System.IO;  using System.IO;
24    using RomCheater.Logging;
25    
26  namespace RomCheater.PluginFramework.Core  namespace RomCheater.PluginFramework.Core
27  {  {
# Line 18  namespace RomCheater.PluginFramework.Cor Line 32  namespace RomCheater.PluginFramework.Cor
32          public ScratchPad(UserControlPlugin plugin)          public ScratchPad(UserControlPlugin plugin)
33          {          {
34              this.plugin = plugin;              this.plugin = plugin;
35                InitPluginFramework();
36              InitializeComponent();                          InitializeComponent();            
37              this.PerformPreInit();              this.PerformPreInit();
38          }          }
39    
40    
41            private void InitPluginFramework()
42            {
43                if (this.plugin == null) { return; }
44                this.plugin.OnSelectedProcessChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
45                this.plugin.OnSelectedConfigChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
46                this.plugin.OnPEDataUpdated += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
47            }
48            void plugin_OnPEDataUpdated(PluginFramework.Events.PEViewerDataUpdatedEventArgs e)
49            {
50                logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
51            }
52            void plugin_OnSelectedConfigChanged(PluginFramework.Events.ConfigChangedEventArgs e)
53            {
54                logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
55            }
56            void plugin_OnSelectedProcessChanged(PluginFramework.Events.ProcessChangedEventArgs e)
57            {
58                logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
59            }
60    
61    
62          private void PerformPreInit()          private void PerformPreInit()
63          {          {
64              txtScratchPad.Font = new System.Drawing.Font(txtScratchPad.Font, FontStyle.Italic);              txtScratchPad.Font = new System.Drawing.Font(txtScratchPad.Font, FontStyle.Italic);

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

  ViewVC Help
Powered by ViewVC 1.1.22