public bool Export(TaskList srcTasks, string sDestFilePath, bool bSilent, Preferences prefs, string sKey) { UInt32 taskCount = srcTasks.GetTaskCount(); BulletedMarkdownContainer mdTasks = new BulletedMarkdownContainer(); Task task = srcTasks.GetFirstTask(); while (task.IsValid()) { ExportTask(task, mdTasks, true); task = task.GetNextTask(); } Debug.Write(mdTasks.ToMarkdown()); System.IO.File.WriteAllText(sDestFilePath, mdTasks.ToMarkdown()); return(true); }
public bool Export(TDLTaskList srcTasks, string sDestFilePath, bool bSilent, TDLPreferences prefs, string sKey) { UInt32 taskCount = srcTasks.GetTaskCount(); BulletedMarkdownContainer mdTasks = new BulletedMarkdownContainer(); TDLTask task = srcTasks.GetFirstTask(); while (task.IsValid()) { ExportTask(task, mdTasks, true); task = task.GetNextTask(); } Debug.Write(mdTasks.ToMarkdown()); System.IO.File.WriteAllText(sDestFilePath, mdTasks.ToMarkdown()); return true; }