public bool Export(TDLTaskList srcTasks, string sDestFilePath, bool bSilent, TDLPreferences prefs, string sKey) { int nVal = prefs.GetProfileInt("bob", "dave", 20); int nVal2 = prefs.GetProfileInt("bob", "phil", 20); // add some dummy values to prefs prefs.WriteProfileInt("bob", "dave", 10); TDLTask task = srcTasks.GetFirstTask(); String sTitle = task.GetTitle(); 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; }
public void SavePreferences(TDLPreferences prefs, String key) { }
public void LoadPreferences(TDLPreferences prefs, String key, bool appOnly) { }
public void LoadPreferences(TDLPreferences prefs, String key, bool appOnly) { if (appOnly) { bool taskColorIsBkgnd = (prefs.GetProfileInt("Preferences", "ColorTaskBackground", 0) != 0); if (taskColorIsBkgnd != m_taskColorIsBkgnd) { m_taskColorIsBkgnd = taskColorIsBkgnd; Invalidate(); } } }