예제 #1
0
파일: Form1.cs 프로젝트: AJEETX/XMLtoHTML
 internal void MakeHTML()
 {
     if (ConvertXMLtoHTML.TransformXMLToHTML() < 1)
     {
         MessageBox.Show("All files converted");
     }
 }
예제 #2
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();
            }
        }