/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

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

revision 147 by william, Thu Mar 14 15:23:09 2013 UTC revision 149 by william, Thu Mar 14 15:36:22 2013 UTC
# Line 1  Line 1 
1  //#define DISABLE_RELEASE_MODE_KLOGLEVEL_DEBUG // when defined will turn off kLogLevel_Debug messages, in release mode  #define DISABLE_RELEASE_MODE_KLOGLEVEL_DEBUG // when defined will turn off kLogLevel_Debug messages, in release mode
2  //#define DISABLE_DEBUG_MODE_KLOGLEVEL_VERBOSE_DEBUG // when defined will turn off kLogLevel_VerboseDebug message, in debug mode  //#define DISABLE_DEBUG_MODE_KLOGLEVEL_VERBOSE_DEBUG // when defined will turn off kLogLevel_VerboseDebug message, in debug mode
3  //#define USE_DYNAMIC_SORTING_FILTERING_CONTROLS // when defined will setup dynamic sorting and filtering controls for XMLTV Data  //#define USE_DYNAMIC_SORTING_FILTERING_CONTROLS // when defined will setup dynamic sorting and filtering controls for XMLTV Data
4  using System;  using System;
# Line 220  namespace xmltv_parser Line 220  namespace xmltv_parser
220  #if USE_DYNAMIC_SORTING_FILTERING_CONTROLS  #if USE_DYNAMIC_SORTING_FILTERING_CONTROLS
221                _CreatControlsFromType(data_type);                _CreatControlsFromType(data_type);
222  #else  #else
223              gLog.Warn.WriteLine("Dynamic creation of sorting and filtering controls has not been enabled.");              gLog.Verbose.Warn.WriteLine("Dynamic creation of sorting and filtering controls has not been enabled.");
224              gLog.Warn.WriteLine("To enable: #define USE_DYNAMIC_SORTING_FILTERING_CONTROLS");              gLog.Verbose.Warn.WriteLine("To enable: #define USE_DYNAMIC_SORTING_FILTERING_CONTROLS");
225  #endif  #endif
226          }          }
227          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]
# Line 240  namespace xmltv_parser Line 240  namespace xmltv_parser
240          void CreateDefaultControls(Type data_type)          void CreateDefaultControls(Type data_type)
241          {          {
242              // no default controls              // no default controls
243              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);              gLog.Verbose.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
244          }          }
245          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]
246          void CreateSourceDefinitionControls(Type data_type)          void CreateSourceDefinitionControls(Type data_type)
247          {          {
248              // no controls needed              // no controls needed
249              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);              gLog.Verbose.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
250          }          }
251          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]
252          void CreateChannelDefinitionControls(Type data_type)          void CreateChannelDefinitionControls(Type data_type)
253          {          {
254              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);              gLog.Verbose.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
255          }          }
256          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]          [Conditional("USE_DYNAMIC_SORTING_FILTERING_CONTROLS")]
257          void CreateProgramDefinitionControls(Type data_type)          void CreateProgramDefinitionControls(Type data_type)
258          {          {
259              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);              gLog.Verbose.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
260          }          }
261          #endregion          #endregion
262    
# Line 386  namespace xmltv_parser Line 386  namespace xmltv_parser
386              }              }
387              if (!control_selected)              if (!control_selected)
388              {              {
389                  gLog.Warn.WriteLine("Unkown filter value used.  Was not: channelname, title, subtitle, description, start, or stop.");                  gLog.Verbose.Warn.WriteLine("Unkown filter value used.  Was not: channelname, title, subtitle, description, start, or stop.");
390                  //throw new InvalidOperationException("No filtering control is currently selected.");                  //throw new InvalidOperationException("No filtering control is currently selected.");
391                  return button;                  return button;
392              }              }

Legend:
Removed from v.147  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.22