public void Convert()
        {
            var reader  = new MPPReader();
            var project = reader.read(_mpp);
            var writer  = new MSPDIWriter();

            writer.write(project, _xml);
        }
Example #2
0
        private int HandleFileOpen(string file)
        {
            try
            {
                PrimaveraXERFileReader reader = new PrimaveraXERFileReader();
                //ProjectReader reader = ProjectReaderUtility.getProjectReader(file);
                Map activities = reader.ActivityFieldMap;

                activities.put(TaskField.TEXT10, "task_code");

                ProjectFile projectFile = reader.read(file);
                MSPDIWriter writer      = new MSPDIWriter();
                writer.write(projectFile, file + ".xml");
                File = "Done";
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(1);
            }

            return(0);
        }