Esempio n. 1
0
 public void TxtToHtml()
 {
     if (ow != null)
     {
         var t2h = new TxtToHtml(ow, configXml);
         Assert.IsNotNull(t2h);
     }
 }
Esempio n. 2
0
        private static void Process()
        {
            do
            {
                Log("-----------------------------");
                Log("  GV = GraphViz");
                Log("  CX = Convert .csv to .xml");
                Log("  TH = Convert .txt to .html");
                Log("  XT = XML table");
                Log("-----------------------------");
                List <string> commands = new List <string>()
                {
                    "GV", "CX", "TH", "XT"
                };

                string command = cw.Ask(new QAManager(commands, "GV", "Select a tool"));
                switch (command.ToUpper())
                {
                case "C":
                {
                    return;
                }

                case "GV":
                {
                    GraphViz();
                    break;
                }

                case "CX":
                {
                    csvToXml = new CsvToXml(ow, configXml);
                    csvToXml.Start();
                    break;
                }

                case "TH":
                {
                    txtToHtml = new TxtToHtml(ow, configXml);
                    txtToHtml.Start();
                    break;
                }

                case "XT":
                {
                    xDbM = new XmlDBManager(ow, configXml);
                    xDbM.LoadDFD();
                    xDbM.SaveDFD();
                    break;
                }
                }
                Log(OK);
                xm.Save();
            } while (true);
        }