Example #1
0
 static void saveToDatabase(TaskParser parser, string databasepath, bool makeTable)
 {
     Console.WriteLine("saving to access table Task...");
     Task_to_acces.TaskToAcces_2010 tta = new TaskToAcces_2010(databasepath);
     if (makeTable)
     {
         tta.MakeTable("Tasks", parser.Tasks[0].heads);
     }
     tta.ToAcces("Tasks", parser.Tasks);
 }
Example #2
0
        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);
        }