Esempio n. 1
0
 internal void MakeHTML()
 {
     if (ConvertXMLtoHTML.TransformXMLToHTML() < 1)
     {
         MessageBox.Show("All files converted");
     }
 }
Esempio n. 2
0
 private void DeleteOutputFolderFiles()
 {
     //check if output directory exits
     if (!Directory.Exists(htmlOutputFilePath))
     {
         //create a new Output folder
         Directory.CreateDirectory(htmlOutputFilePath);
     }
     ConvertXMLtoHTML.CopyInputFile(xslFilePath, htmlOutputFilePath, searchCSSpattern);
 }
Esempio n. 3
0
        private void MakeHTML()
        {
            int countFilesRemainingtoTransform = ConvertXMLtoHTML.TransformXMLToHTML(xslFilePath, xslFile, htmlOutputFilePath);

            //If all the files on the queue have been converted i.e. no files remaining then show the sucess message
            if (countFilesRemainingtoTransform == 0)
            {
                //do not show picturebox as the transform is complete
                EnablePictureBoxVisibility(pictureBox1, false);

                //Open a window stating that the transform is complete
                MessageBox.Show("XML files converted to html at Date Time:" + DateTime.Now.ToLocalTime(), "XML to HTML conversion", MessageBoxButtons.OK);

                //open the folder where html files are created
                Process.Start(htmlOutputFilePath);

                // close the application
                Application.Exit();
            }
        }
Esempio n. 4
0
 internal void ReadFiles()
 {
     ConvertXMLtoHTML.ReadAllXMLFiles();
 }
Esempio n. 5
0
 private void ReadFiles()
 {
     ConvertXMLtoHTML.ReadAllFileswithPattern(xmlFilePath, searchXMLpattern);
 }