ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs
Revision: 684
Committed: Mon Jun 17 08:52:54 2013 UTC (9 years, 11 months ago) by william
File size: 2394 byte(s)
Log Message:

File Contents

# User Rev Content
1 william 443 #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    
15     using System;
16 william 440 using System.Collections.Generic;
17     using System.ComponentModel;
18     using System.Data;
19     using System.Drawing;
20     using System.Linq;
21     using System.Text;
22     using System.Windows.Forms;
23     using WeifenLuo.WinFormsUI.Docking;
24 william 683 using RomCheater.PluginFramework.Core;
25 william 684 using RomCheater.Logging;
26 william 440
27     namespace RomCheater.CheatPlugin
28     {
29     public partial class CheatCodeDockContent : DockContent
30     {
31 william 683 private UserControlPlugin plugin;
32     public CheatCodeDockContent(UserControlPlugin plugin)
33 william 440 {
34 william 683 this.plugin = plugin;
35 william 684 InitPluginFramework();
36 william 440 InitializeComponent();
37     }
38 william 684 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 william 440 }
58     }