コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void SavePreferences(TDLPreferences prefs, String key)
 {
 }
コード例 #4
0
 public void LoadPreferences(TDLPreferences prefs, String key, bool appOnly)
 {
 }
コード例 #5
0
        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();
                }
            }
        }