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

Annotation of /trunk/xmltv_parser/main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations) (download)
Thu Mar 7 12:51:53 2013 UTC (6 years, 9 months ago) by william
File size: 1070 byte(s)

1 william 2 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Text;
7     using System.Windows.Forms;
8 william 11 using libxmltv.Core;
9 william 13 using Enterprise.Logging;
10 william 2
11     namespace xmltv_parser
12     {
13 william 13 public partial class main : Form
14 william 2 {
15 william 13 public main()
16 william 2 {
17     InitializeComponent();
18 william 13 string log_path = Application.StartupPath;
19     string log_filename = string.Format("{0}.log", typeof(main).Assembly.GetName().Name);
20 william 18 gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All);
21 william 2 }
22 william 11
23 william 16 private void main_Load(object sender, EventArgs e)
24 william 11 {
25    
26     }
27 william 16 private void main_Shown(object sender, EventArgs e)
28 william 11 {
29 william 22 var xmltv_loader = XMLTV.CreateLoader("20130307_continuum_schedule.xml");
30     var xmltv_parser = XMLTV.CreateParser(xmltv_loader);
31 william 23 var p = XMLTV.GetParser(xmltv_parser);
32 william 28 //p.TestParse()
33 william 11 }
34 william 2 }
35     }

  ViewVC Help
Powered by ViewVC 1.1.22