static void parse(TaskParser parser, string html_path) { Console.WriteLine("parsing..."); parser.AddTasksFromFile(html_path); foreach (TaskParser_lib.Task task in parser.Tasks) { Console.WriteLine("row " + parser.Tasks.IndexOf(task) + " is parsed"); } }
static void DemoParser() /* function to demonstrate the functionality */ { TaskParser parser = new TaskParser(); parser.AddTasksFromFile("task_list.html"); foreach (TaskParser_lib.Task task in parser.Tasks) { Console.WriteLine(task.data[0]); } Task_to_acces.TaskToAcces_2010 tta = new TaskToAcces_2010("TestDatabase.accdb"); tta.ToAcces(parser.nameTable, parser.Tasks); }