Пример #1
0
        void task_json_to_text(string path, string dest)
        {
            tsContentToText text = new tsContentToText(dest);
            if (text.Enabled())
            {
                jsonContent json = new jsonContent(null,text);
                json.ParseFile(path,message);
                text.Close();
            }

            __endTask(this, Path.GetFileName(dest)+".");
        }
Пример #2
0
        void task_json_to_map(string path, string dest)
        {
            tsContentToMap map = new tsContentToMap(dest);
            map.Progress = fProgress;
            map.workDir(fworkDir);

            jsonContent json = new jsonContent(null, map);
            json.ParseFile(path, message);
            map.Close();

            string msg = null;
            if (map.Count > 0)
            msg = Path.GetFileName(dest) + ".";

            __endTask(this,msg);
        }