/[RomCheater]/trunk/RomCheater/RomCheaterConfigDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

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

revision 414 by william, Fri Jun 22 08:21:18 2012 UTC revision 692 by william, Mon Jun 17 10:29:30 2013 UTC
# Line 1  Line 1 
1  #region Logging Defines  #region Logging Defines
2  // include this any class or method that required logging, and comment-out what is not needed  // include this any class or method that required logging, and comment-out what is not needed
3  #define LOGGING_ENABLED  
4  #region Enabled logging levels  #region Enabled logging levels
5  #define LOGGING_ENABLE_INFO  #define LOGGING_ENABLE_INFO
6  #define LOGGING_ENABLE_WARN  #define LOGGING_ENABLE_WARN
# Line 22  using System.Text; Line 22  using System.Text;
22  using System.Windows.Forms;  using System.Windows.Forms;
23  using RomCheater.Logging;  using RomCheater.Logging;
24  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
25  using RomCheater.PluginFramework.Interfaces;  using RomCheater.Core;
26    
27    
28  namespace RomCheater  namespace RomCheater
29  {  {
# Line 121  namespace RomCheater Line 122  namespace RomCheater
122                  logger.SetLoggingFlags(pflags);                  logger.SetLoggingFlags(pflags);
123              }              }
124  #endif  #endif
125              foreach (loggerflags flags in loggerflags.GetValues())              var logger_flags = loggerflags.GetValues();
126    
127                foreach (loggerflags flags in logger_flags)
128              {              {
129                  if (flags == loggerflags.ALL ||                  if (flags == loggerflags.ALL ||
130                      flags == loggerflags.NONE ||                      flags == loggerflags.NONE ||
131                      flags == loggerflags.DEFAULT)                      flags == loggerflags.DEFAULT)
132                      continue;                      continue;
133    
134                  string name = flags.ToString();                  string name = flags.Name;
135                  ushort value = (ushort)flags;                  ushort value = (ushort)flags;
136    
137                  CheckBox chkloggerflags = new CheckBox();                  CheckBox chkloggerflags = new CheckBox();

Legend:
Removed from v.414  
changed lines
  Added in v.692

  ViewVC Help
Powered by ViewVC 1.1.22